Esri Geoportal Server
1.0

com.esri.gpt.framework.security.principal
Class User

java.lang.Object
  extended by com.esri.gpt.framework.security.principal.SecurityPrincipal
      extended by com.esri.gpt.framework.security.principal.User
Direct Known Subclasses:
Publisher

public class User
extends SecurityPrincipal

Represents a user within the system.


Constructor Summary
User()
          Default constructor.
User(String key)
          Construct with a supplied key.
 
Method Summary
 AuthenticationStatus getAuthenticationStatus()
          Gets the authentication status.
 Credentials getCredentials()
          Gets the credentials for the user.
 Groups getGroups()
          Gets the groups to which the user belongs.
 String getName()
          Gets the name for this user.
 UserAttributeMap getProfile()
          Gets the attribute map describing the user's profile.
 void reset()
          Reset.
 void setAuthenticationStatus(AuthenticationStatus authStatus)
          Sets the authentication status.
 void setCredentials(Credentials credentials)
          Sets the credentials for the user.
 void setGroups(Groups groups)
          Sets the groups to which the user belongs.
 void setProfile(UserAttributeMap map)
          Sets the attribute map describing the user's profile.
 
Methods inherited from class com.esri.gpt.framework.security.principal.SecurityPrincipal
getDistinguishedName, getKey, getLocalID, setDistinguishedName, setKey, setLocalID, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User()
Default constructor.


User

public User(String key)
Construct with a supplied key.

Parameters:
key - the key
Method Detail

getAuthenticationStatus

public AuthenticationStatus getAuthenticationStatus()
Gets the authentication status.

Returns:
the authentication status

setAuthenticationStatus

public void setAuthenticationStatus(AuthenticationStatus authStatus)
Sets the authentication status.

Parameters:
authStatus - authentication status

getCredentials

public Credentials getCredentials()
Gets the credentials for the user.

Returns:
the credentials

setCredentials

public void setCredentials(Credentials credentials)
Sets the credentials for the user.

Parameters:
credentials - the credentials

getGroups

public Groups getGroups()
Gets the groups to which the user belongs.

Returns:
the groups

setGroups

public void setGroups(Groups groups)
Sets the groups to which the user belongs.

Parameters:
groups - the groups

getName

public String getName()
Gets the name for this user.

Overrides:
getName in class SecurityPrincipal
Returns:
the name

getProfile

public UserAttributeMap getProfile()
Gets the attribute map describing the user's profile.

Returns:
the attribute map

setProfile

public void setProfile(UserAttributeMap map)
Sets the attribute map describing the user's profile.

Parameters:
map - the attribute map

reset

public void reset()
Reset.

Overrides:
reset in class SecurityPrincipal

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.