|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.security.om.impl.InternalCredentialImpl
public class InternalCredentialImpl
InternalCredential interface implementation.
| Field Summary |
|---|
| Fields inherited from interface org.apache.jetspeed.security.om.InternalCredential |
|---|
MAX_DATE, PRIVATE, PUBLIC |
| Constructor Summary | |
|---|---|
InternalCredentialImpl()
InternalCredential implementation default constructor. |
|
InternalCredentialImpl(InternalCredential credential,
java.lang.String classname)
InternalCredentialImpl copy constructor given another InternalCredential and overriding classname |
|
InternalCredentialImpl(long principalId,
java.lang.String value,
int type,
java.lang.String classname)
InternalCredentialImpl constructor given a value, type and classname. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Compares this InternalCredential to the provided credential
and check if they are equal. |
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. |
java.lang.String |
toString()
Convert Node to string. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InternalCredentialImpl()
InternalCredential implementation default constructor.
public InternalCredentialImpl(long principalId,
java.lang.String value,
int type,
java.lang.String classname)
InternalCredentialImpl constructor given a value, type and classname.
principalId - The principal id.value - The value.type - The type.classname - The classname.
public InternalCredentialImpl(InternalCredential credential,
java.lang.String classname)
InternalCredentialImpl copy constructor given another InternalCredential and overriding classname
credential - The credential to copy fromclassname - The classname for the new credential| Method Detail |
|---|
public long getCredentialId()
InternalCredentialGetter for the credential id.
getCredentialId in interface InternalCredentialInternalCredential.getCredentialId()public void setCredentialId(long credentialId)
InternalCredentialSetter for the credential id.
setCredentialId in interface InternalCredentialcredentialId - The credential id.InternalCredential.setCredentialId(long)public long getPrincipalId()
InternalCredentialGetter for the principal id.
getPrincipalId in interface InternalCredentialInternalCredential.getPrincipalId()public void setPrincipalId(long principalId)
InternalCredentialSetter for the principal id.
setPrincipalId in interface InternalCredentialprincipalId - The principal id.InternalCredential.setPrincipalId(long)public java.lang.String getValue()
InternalCredentialGetter for the credential value.
getValue in interface InternalCredentialInternalCredential.getValue()public void setValue(java.lang.String value)
InternalCredentialSetter for the credential value.
setValue in interface InternalCredentialvalue - The credential value.InternalCredential.setValue(java.lang.String)public boolean isUpdateRequired()
InternalCredentialGetter for the update required state
isUpdateRequired in interface InternalCredentialInternalCredential.isUpdateRequired()public void setUpdateRequired(boolean updateRequired)
InternalCredentialSetter for the update required state
setUpdateRequired in interface InternalCredentialupdateRequired - the update required statepublic boolean isEncoded()
InternalCredentialGetter for the encoded state
isEncoded in interface InternalCredentialInternalCredential.isEncoded()public void setEncoded(boolean encoded)
InternalCredential
setEncoded in interface InternalCredentialencoded - The encoded stateInternalCredential.setEncoded(boolean)public boolean isEnabled()
InternalCredentialGetter for the enabled state
isEnabled in interface InternalCredentialInternalCredential.isEnabled()public void setEnabled(boolean enabled)
InternalCredential
setEnabled in interface InternalCredentialenabled - The enabled stateInternalCredential.setEnabled(boolean)public int getAuthenticationFailures()
InternalCredentialGetter for the current number of authentication failures in a row.
getAuthenticationFailures in interface InternalCredentialInternalCredential.getAuthenticationFailures()public void setAuthenticationFailures(int authenticationFailures)
InternalCredentialSetter for the number of authentication failures
setAuthenticationFailures in interface InternalCredentialauthenticationFailures - The number of authentication failuresInternalCredential.setAuthenticationFailures(int)public boolean isExpired()
InternalCredential
isExpired in interface InternalCredentialInternalCredential.isExpired()public void setExpired(boolean expired)
InternalCredential
setExpired in interface InternalCredentialexpired - The expired stateInternalCredential.setExpired(boolean)public java.sql.Date getExpirationDate()
InternalCredentialGetter for the expiration date.
getExpirationDate in interface InternalCredentialInternalCredential.getExpirationDate()public void setExpirationDate(java.sql.Date expirationDate)
InternalCredentialSetter for the expiration date.
setExpirationDate in interface InternalCredentialexpirationDate - The expiration date.InternalCredential.setExpirationDate(java.sql.Date)public int getType()
InternalCredentialGetter for the credential type.
getType in interface InternalCredentialInternalCredential.getType()public void setType(int type)
InternalCredentialSetter for the credential type.
setType in interface InternalCredentialtype - The credential type.InternalCredential.setType(int)public java.lang.String getClassname()
InternalCredentialGetter for the principal classname.
getClassname in interface InternalCredentialInternalCredential.getClassname()public void setClassname(java.lang.String classname)
InternalCredentialSetter for the principal classname.
setClassname in interface InternalCredentialclassname - The principal classname.InternalCredential.setClassname(java.lang.String)public java.sql.Timestamp getCreationDate()
InternalCredentialGetter for creation date.
getCreationDate in interface InternalCredentialInternalCredential.getCreationDate()public void setCreationDate(java.sql.Timestamp creationDate)
InternalCredentialSetter for the creation date.
setCreationDate in interface InternalCredentialcreationDate - The creation date.InternalCredential.setCreationDate(java.sql.Timestamp)public java.sql.Timestamp getModifiedDate()
InternalCredentialGetter for the modified date.
getModifiedDate in interface InternalCredentialInternalCredential.getModifiedDate()public void setModifiedDate(java.sql.Timestamp modifiedDate)
InternalCredentialSetter for the modified date.
setModifiedDate in interface InternalCredentialmodifiedDate - The modified date.InternalCredential.setModifiedDate(java.sql.Timestamp)public java.sql.Timestamp getPreviousAuthenticationDate()
InternalCredentialGetter for the previous authentication date
getPreviousAuthenticationDate in interface InternalCredentialInternalCredential.getPreviousAuthenticationDate()public void setPreviousAuthenticationDate(java.sql.Timestamp previousAuthenticationDate)
InternalCredentialSetter for the previous authentication date
setPreviousAuthenticationDate in interface InternalCredentialpreviousAuthenticationDate - The previous authentication date.InternalCredential.setPreviousAuthenticationDate(java.sql.Timestamp)public java.sql.Timestamp getLastAuthenticationDate()
InternalCredentialGetter for the last authentication date
getLastAuthenticationDate in interface InternalCredentialInternalCredential.getLastAuthenticationDate()public void setLastAuthenticationDate(java.sql.Timestamp lastAuthenticationDate)
InternalCredentialSetter for the last authentication date
setLastAuthenticationDate in interface InternalCredentiallastAuthenticationDate - The last authentication date.InternalCredential.setLastAuthenticationDate(java.sql.Timestamp)public boolean equals(java.lang.Object object)
Compares this InternalCredential to the provided credential
and check if they are equal.
InternalCredential are equal.
equals in class java.lang.Objectpublic java.lang.String toString()
Convert Node to string.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||