|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InternalCredential
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 java.sql.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. |
java.lang.String |
getClassname()
Getter for the principal classname. |
java.sql.Timestamp |
getCreationDate()
Getter for creation date. |
long |
getCredentialId()
Getter for the credential id. |
java.sql.Date |
getExpirationDate()
Getter for the expiration date. |
java.sql.Timestamp |
getLastAuthenticationDate()
Getter for the last authentication date |
java.sql.Timestamp |
getModifiedDate()
Getter for the modified date. |
java.sql.Timestamp |
getPreviousAuthenticationDate()
Getter for the previous authentication date |
long |
getPrincipalId()
Getter for the principal id. |
int |
getType()
Getter for the credential type. |
java.lang.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(java.lang.String classname)
Setter for the principal classname. |
void |
setCreationDate(java.sql.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(java.sql.Date expirationDate)
Setter for the expiration date. |
void |
setExpired(boolean expired)
Setter for the expired state. |
void |
setLastAuthenticationDate(java.sql.Timestamp lastAuthenticationDate)
Setter for the last authentication date |
void |
setModifiedDate(java.sql.Timestamp modifiedDate)
Setter for the modified date. |
void |
setPreviousAuthenticationDate(java.sql.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(java.lang.String value)
Setter for the credential value. |
| Field Detail |
|---|
static final int PRIVATE
static final int PUBLIC
static final java.sql.Date MAX_DATE
| Method Detail |
|---|
long getCredentialId()
Getter for the credential id.
void setCredentialId(long credentialId)
Setter for the credential id.
credentialId - The credential id.long getPrincipalId()
Getter for the principal id.
void setPrincipalId(long principalId)
Setter for the principal id.
principalId - The principal id.java.lang.String getValue()
Getter for the credential value.
void setValue(java.lang.String value)
Setter for the credential value.
value - The credential value.boolean isUpdateRequired()
Getter for the update required state
void setUpdateRequired(boolean updateRequired)
Setter for the update required state
updateRequired - the update required stateboolean isEncoded()
Getter for the encoded state
void setEncoded(boolean encoded)
encoded - The encoded stateboolean isEnabled()
Getter for the enabled state
void setEnabled(boolean enabled)
enabled - The enabled stateint getAuthenticationFailures()
Getter for the current number of authentication failures in a row.
void setAuthenticationFailures(int authenticationFailures)
Setter for the number of authentication failures
authenticationFailures - The number of authentication failuresboolean isExpired()
void setExpired(boolean expired)
expired - The expired statejava.sql.Date getExpirationDate()
Getter for the expiration date.
void setExpirationDate(java.sql.Date expirationDate)
Setter for the expiration date.
expirationDate - The expiration date.int getType()
Getter for the credential type.
void setType(int type)
Setter for the credential type.
type - The credential type.java.lang.String getClassname()
Getter for the principal classname.
void setClassname(java.lang.String classname)
Setter for the principal classname.
classname - The principal classname.java.sql.Timestamp getCreationDate()
Getter for creation date.
void setCreationDate(java.sql.Timestamp creationDate)
Setter for the creation date.
creationDate - The creation date.java.sql.Timestamp getModifiedDate()
Getter for the modified date.
void setModifiedDate(java.sql.Timestamp modifiedDate)
Setter for the modified date.
modifiedDate - The modified date.java.sql.Timestamp getPreviousAuthenticationDate()
Getter for the previous authentication date
void setPreviousAuthenticationDate(java.sql.Timestamp previousAuthenticationDate)
Setter for the previous authentication date
previousAuthenticationDate - The previous authentication date.java.sql.Timestamp getLastAuthenticationDate()
Getter for the last authentication date
void setLastAuthenticationDate(java.sql.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 | |||||||||