|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface representing a security credential.
The credential value represents the value of the credential such as a password.
For now, we do not have custom credentials classes and credentials support only 1 credential (i.e. 1 password).
The credential type represents whether a credential is private or public:
The credential classname represent the class of credential.
TODO Add multiple credentials support.
Field Summary | |
static Date |
MAX_DATE
Maximum allowed java.sql.Date value (according to the specs). |
static int |
PRIVATE
Private credentials type. |
static int |
PUBLIC
Public credentials type. |
Method Summary | |
int |
getAuthenticationFailures()
Getter for the current number of authentication failures in a row. |
String |
getClassname()
Getter for the principal classname. |
Timestamp |
getCreationDate()
Getter for creation date. |
long |
getCredentialId()
Getter for the credential id. |
Date |
getExpirationDate()
Getter for the expiration date. |
Timestamp |
getLastAuthenticationDate()
Getter for the last authentication date |
Timestamp |
getModifiedDate()
Getter for the modified date. |
Timestamp |
getPreviousAuthenticationDate()
Getter for the previous authentication date |
long |
getPrincipalId()
Getter for the principal id. |
int |
getType()
Getter for the credential type. |
String |
getValue()
Getter for the credential value. |
boolean |
isEnabled()
Getter for the enabled state |
boolean |
isEncoded()
Getter for the encoded state |
boolean |
isExpired()
Getter for the expired state. |
boolean |
isUpdateRequired()
Getter for the update required state |
void |
setAuthenticationFailures(int authenticationFailures)
Setter for the number of authentication failures |
void |
setClassname(String classname)
Setter for the principal classname. |
void |
setCreationDate(Timestamp creationDate)
Setter for the creation date. |
void |
setCredentialId(long credentialId)
Setter for the credential id. |
void |
setEnabled(boolean enabled)
Setter for the enabled state |
void |
setEncoded(boolean encoded)
Setter for the encoded state |
void |
setExpirationDate(Date expirationDate)
Setter for the expiration date. |
void |
setExpired(boolean expired)
Setter for the expired state. |
void |
setLastAuthenticationDate(Timestamp lastAuthenticationDate)
Setter for the last authentication date |
void |
setModifiedDate(Timestamp modifiedDate)
Setter for the modified date. |
void |
setPreviousAuthenticationDate(Timestamp previousAuthenticationDate)
Setter for the previous authentication date |
void |
setPrincipalId(long principalId)
Setter for the principal id. |
void |
setType(int type)
Setter for the credential type. |
void |
setUpdateRequired(boolean updateRequired)
Setter for the update required state |
void |
setValue(String value)
Setter for the credential value. |
Field Detail |
public static final int PRIVATE
public static final int PUBLIC
public static final Date MAX_DATE
Method Detail |
public long getCredentialId()
Getter for the credential id.
public void setCredentialId(long credentialId)
Setter for the credential id.
credentialId
- The credential id.public long getPrincipalId()
Getter for the principal id.
public void setPrincipalId(long principalId)
Setter for the principal id.
principalId
- The principal id.public String getValue()
Getter for the credential value.
public void setValue(String value)
Setter for the credential value.
value
- The credential value.public boolean isUpdateRequired()
Getter for the update required state
public void setUpdateRequired(boolean updateRequired)
Setter for the update required state
updateRequired
- the update required statepublic boolean isEncoded()
Getter for the encoded state
public void setEncoded(boolean encoded)
encoded
- The encoded statepublic boolean isEnabled()
Getter for the enabled state
public void setEnabled(boolean enabled)
enabled
- The enabled statepublic int getAuthenticationFailures()
Getter for the current number of authentication failures in a row.
public void setAuthenticationFailures(int authenticationFailures)
Setter for the number of authentication failures
authenticationFailures
- The number of authentication failurespublic boolean isExpired()
public void setExpired(boolean expired)
expired
- The expired statepublic Date getExpirationDate()
Getter for the expiration date.
public void setExpirationDate(Date expirationDate)
Setter for the expiration date.
expirationDate
- The expiration date.public int getType()
Getter for the credential type.
public void setType(int type)
Setter for the credential type.
type
- The credential type.public String getClassname()
Getter for the principal classname.
public void setClassname(String classname)
Setter for the principal classname.
classname
- The principal classname.public Timestamp getCreationDate()
Getter for creation date.
public void setCreationDate(Timestamp creationDate)
Setter for the creation date.
creationDate
- The creation date.public Timestamp getModifiedDate()
Getter for the modified date.
public void setModifiedDate(Timestamp modifiedDate)
Setter for the modified date.
modifiedDate
- The modified date.public Timestamp getPreviousAuthenticationDate()
Getter for the previous authentication date
public void setPreviousAuthenticationDate(Timestamp previousAuthenticationDate)
Setter for the previous authentication date
previousAuthenticationDate
- The previous authentication date.public Timestamp getLastAuthenticationDate()
Getter for the last authentication date
public void setLastAuthenticationDate(Timestamp lastAuthenticationDate)
Setter for the last authentication date
lastAuthenticationDate
- The last authentication date.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |