com.atlassian.crowd.integration.model
Class RemotePrincipal

java.lang.Object
  extended by com.atlassian.crowd.integration.model.DirectoryEntity
      extended by com.atlassian.crowd.integration.model.RemotePrincipal
All Implemented Interfaces:
NamedEntity, java.io.Serializable, java.lang.Comparable<DirectoryEntity>, java.security.Principal

public class RemotePrincipal
extends DirectoryEntity
implements java.security.Principal, java.io.Serializable

The RemotePrincipal is in an implementation of the crowd principal interface. This represents an entity, such as a login id for an individual.

See Also:
Serialized Form

Field Summary
protected  java.util.List<PasswordCredential> credentialHistory
          Credentials history.
protected  java.util.List<PasswordCredential> credentials
          Credentials for the entity.
static java.lang.String DISPLAYNAME
          Key for if the principal has a display name attribute.
static java.lang.String EMAIL
          Key for the email attribute.
static java.lang.String FIRSTNAME
          Key for the first name attribute.
static java.lang.String INVALID_PASSWORD_ATTEMPTS
          Key for the total invalid password attempts.
static java.lang.String LAST_AUTHENTICATED
          Key for the last authentication.
static java.lang.String LASTNAME
          Key for the last name attribute.
static java.lang.String PASSWORD_LASTCHANGED
          Key for the password last changed attribute.
static java.lang.String REQUIRES_PASSSWORD_CHANGE
          Key for if the principal needs to change their password.
static java.lang.String USERNAME
          Key for the username value.
 
Fields inherited from class com.atlassian.crowd.integration.model.DirectoryEntity
active, attributes, conception, description, directoryID, ID, lastModified, name
 
Constructor Summary
RemotePrincipal()
           
RemotePrincipal(RemotePrincipal principal)
           
RemotePrincipal(java.lang.String name)
           
 
Method Summary
 java.util.List<PasswordCredential> getCredentialHistory()
           
 java.util.List<PasswordCredential> getCredentials()
           
 java.lang.String getEmail()
           
 void setCredentialHistory(java.util.List<PasswordCredential> credentialHistory)
           
 void setCredentials(java.util.List<PasswordCredential> credentials)
           
 void setEmail(java.lang.String email)
           
 
Methods inherited from class com.atlassian.crowd.integration.model.DirectoryEntity
compareTo, equals, getAttribute, getAttributeBooleanValue, getAttributes, getConception, getDescription, getDirectoryID, getID, getLastModified, getName, getSingleAttributeLongValue, getSingleAttributeValue, hashCode, isActive, setActive, setAttribute, setAttributes, setConception, setDescription, setDirectoryID, setID, setLastModified, setName, setOrReplaceAttribute, setOrReplaceAttribute, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Field Detail

USERNAME

public static final java.lang.String USERNAME
Key for the username value.

See Also:
Constant Field Values

FIRSTNAME

public static final java.lang.String FIRSTNAME
Key for the first name attribute.

See Also:
Constant Field Values

LASTNAME

public static final java.lang.String LASTNAME
Key for the last name attribute.

See Also:
Constant Field Values

DISPLAYNAME

public static final java.lang.String DISPLAYNAME
Key for if the principal has a display name attribute.

See Also:
Constant Field Values

EMAIL

public static final java.lang.String EMAIL
Key for the email attribute.

See Also:
Constant Field Values

PASSWORD_LASTCHANGED

public static final java.lang.String PASSWORD_LASTCHANGED
Key for the password last changed attribute.

See Also:
Constant Field Values

LAST_AUTHENTICATED

public static final java.lang.String LAST_AUTHENTICATED
Key for the last authentication.

See Also:
Constant Field Values

INVALID_PASSWORD_ATTEMPTS

public static final java.lang.String INVALID_PASSWORD_ATTEMPTS
Key for the total invalid password attempts.

See Also:
Constant Field Values

REQUIRES_PASSSWORD_CHANGE

public static final java.lang.String REQUIRES_PASSSWORD_CHANGE
Key for if the principal needs to change their password.

See Also:
Constant Field Values

credentials

protected java.util.List<PasswordCredential> credentials
Credentials for the entity.


credentialHistory

protected java.util.List<PasswordCredential> credentialHistory
Credentials history.

Constructor Detail

RemotePrincipal

public RemotePrincipal()

RemotePrincipal

public RemotePrincipal(java.lang.String name)

RemotePrincipal

public RemotePrincipal(RemotePrincipal principal)
Method Detail

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String email)

getCredentials

public java.util.List<PasswordCredential> getCredentials()

setCredentials

public void setCredentials(java.util.List<PasswordCredential> credentials)

getCredentialHistory

public java.util.List<PasswordCredential> getCredentialHistory()

setCredentialHistory

public void setCredentialHistory(java.util.List<PasswordCredential> credentialHistory)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.