|
||||||||||
| 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 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 |
|---|
static final int PRIVATE
static final int PUBLIC
static final 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.String getValue()
Getter for the credential value.
void setValue(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 stateDate getExpirationDate()
Getter for the expiration date.
void setExpirationDate(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.String getClassname()
Getter for the principal classname.
void setClassname(String classname)
Setter for the principal classname.
classname - The principal classname.Timestamp getCreationDate()
Getter for creation date.
void setCreationDate(Timestamp creationDate)
Setter for the creation date.
creationDate - The creation date.Timestamp getModifiedDate()
Getter for the modified date.
void setModifiedDate(Timestamp modifiedDate)
Setter for the modified date.
modifiedDate - The modified date.Timestamp getPreviousAuthenticationDate()
Getter for the previous authentication date
void setPreviousAuthenticationDate(Timestamp previousAuthenticationDate)
Setter for the previous authentication date
previousAuthenticationDate - The previous authentication date.Timestamp getLastAuthenticationDate()
Getter for the last authentication date
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 | |||||||||