|
||||||||||
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 credentialMethod Detail |
---|
public long getCredentialId()
InternalCredential
Getter for the credential id.
getCredentialId
in interface InternalCredential
InternalCredential.getCredentialId()
public void setCredentialId(long credentialId)
InternalCredential
Setter for the credential id.
setCredentialId
in interface InternalCredential
credentialId
- The credential id.InternalCredential.setCredentialId(long)
public long getPrincipalId()
InternalCredential
Getter for the principal id.
getPrincipalId
in interface InternalCredential
InternalCredential.getPrincipalId()
public void setPrincipalId(long principalId)
InternalCredential
Setter for the principal id.
setPrincipalId
in interface InternalCredential
principalId
- The principal id.InternalCredential.setPrincipalId(long)
public java.lang.String getValue()
InternalCredential
Getter for the credential value.
getValue
in interface InternalCredential
InternalCredential.getValue()
public void setValue(java.lang.String value)
InternalCredential
Setter for the credential value.
setValue
in interface InternalCredential
value
- The credential value.InternalCredential.setValue(java.lang.String)
public boolean isUpdateRequired()
InternalCredential
Getter for the update required state
isUpdateRequired
in interface InternalCredential
InternalCredential.isUpdateRequired()
public void setUpdateRequired(boolean updateRequired)
InternalCredential
Setter for the update required state
setUpdateRequired
in interface InternalCredential
updateRequired
- the update required statepublic boolean isEncoded()
InternalCredential
Getter for the encoded state
isEncoded
in interface InternalCredential
InternalCredential.isEncoded()
public void setEncoded(boolean encoded)
InternalCredential
setEncoded
in interface InternalCredential
encoded
- The encoded stateInternalCredential.setEncoded(boolean)
public boolean isEnabled()
InternalCredential
Getter for the enabled state
isEnabled
in interface InternalCredential
InternalCredential.isEnabled()
public void setEnabled(boolean enabled)
InternalCredential
setEnabled
in interface InternalCredential
enabled
- The enabled stateInternalCredential.setEnabled(boolean)
public int getAuthenticationFailures()
InternalCredential
Getter for the current number of authentication failures in a row.
getAuthenticationFailures
in interface InternalCredential
InternalCredential.getAuthenticationFailures()
public void setAuthenticationFailures(int authenticationFailures)
InternalCredential
Setter for the number of authentication failures
setAuthenticationFailures
in interface InternalCredential
authenticationFailures
- The number of authentication failuresInternalCredential.setAuthenticationFailures(int)
public boolean isExpired()
InternalCredential
isExpired
in interface InternalCredential
InternalCredential.isExpired()
public void setExpired(boolean expired)
InternalCredential
setExpired
in interface InternalCredential
expired
- The expired stateInternalCredential.setExpired(boolean)
public java.sql.Date getExpirationDate()
InternalCredential
Getter for the expiration date.
getExpirationDate
in interface InternalCredential
InternalCredential.getExpirationDate()
public void setExpirationDate(java.sql.Date expirationDate)
InternalCredential
Setter for the expiration date.
setExpirationDate
in interface InternalCredential
expirationDate
- The expiration date.InternalCredential.setExpirationDate(java.sql.Date)
public int getType()
InternalCredential
Getter for the credential type.
getType
in interface InternalCredential
InternalCredential.getType()
public void setType(int type)
InternalCredential
Setter for the credential type.
setType
in interface InternalCredential
type
- The credential type.InternalCredential.setType(int)
public java.lang.String getClassname()
InternalCredential
Getter for the principal classname.
getClassname
in interface InternalCredential
InternalCredential.getClassname()
public void setClassname(java.lang.String classname)
InternalCredential
Setter for the principal classname.
setClassname
in interface InternalCredential
classname
- The principal classname.InternalCredential.setClassname(java.lang.String)
public java.sql.Timestamp getCreationDate()
InternalCredential
Getter for creation date.
getCreationDate
in interface InternalCredential
InternalCredential.getCreationDate()
public void setCreationDate(java.sql.Timestamp creationDate)
InternalCredential
Setter for the creation date.
setCreationDate
in interface InternalCredential
creationDate
- The creation date.InternalCredential.setCreationDate(java.sql.Timestamp)
public java.sql.Timestamp getModifiedDate()
InternalCredential
Getter for the modified date.
getModifiedDate
in interface InternalCredential
InternalCredential.getModifiedDate()
public void setModifiedDate(java.sql.Timestamp modifiedDate)
InternalCredential
Setter for the modified date.
setModifiedDate
in interface InternalCredential
modifiedDate
- The modified date.InternalCredential.setModifiedDate(java.sql.Timestamp)
public java.sql.Timestamp getPreviousAuthenticationDate()
InternalCredential
Getter for the previous authentication date
getPreviousAuthenticationDate
in interface InternalCredential
InternalCredential.getPreviousAuthenticationDate()
public void setPreviousAuthenticationDate(java.sql.Timestamp previousAuthenticationDate)
InternalCredential
Setter for the previous authentication date
setPreviousAuthenticationDate
in interface InternalCredential
previousAuthenticationDate
- The previous authentication date.InternalCredential.setPreviousAuthenticationDate(java.sql.Timestamp)
public java.sql.Timestamp getLastAuthenticationDate()
InternalCredential
Getter for the last authentication date
getLastAuthenticationDate
in interface InternalCredential
InternalCredential.getLastAuthenticationDate()
public void setLastAuthenticationDate(java.sql.Timestamp lastAuthenticationDate)
InternalCredential
Setter for the last authentication date
setLastAuthenticationDate
in interface InternalCredential
lastAuthenticationDate
- 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.Object
public 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 |