001package net.sourceforge.spnego;
002
003import java.util.List;
004
005/**
006 * User information from the user-store.
007 * 
008 * @author Darwin V. Felix
009 *
010 */
011public interface UserInfo {
012
013    /**
014     * Returns a list of info associated with the label.
015     * 
016     * @param label e.g. name, proxyAddresses, whenCreated
017     * @return a list of info associated with the label 
018     */
019    List<String> getInfo(final String label);
020    
021    /**
022     * Return a list of labels.
023     * 
024     * @return a list of labels
025     */
026    List<String> getLabels();
027    
028    /**
029     * Returns true if there is info with the passed-in label. 
030     *  
031     * @param label e.g. mail, memberOf, displayName
032     * @return true true if there is info with the passed-in label
033     */
034    boolean hasInfo(final String label);
035}