org.apache.jetspeed.security.om.impl
Class InternalCredentialImpl

java.lang.Object
  extended by org.apache.jetspeed.security.om.impl.InternalCredentialImpl
All Implemented Interfaces:
Serializable, Cloneable, org.apache.jetspeed.security.om.InternalCredential

public class InternalCredentialImpl
extends Object
implements org.apache.jetspeed.security.om.InternalCredential

InternalCredential interface implementation.

Version:
$Id: InternalCredentialImpl.java 516448 2007-03-09 16:25:47Z ate $
Author:
David Le Strat
See Also:
Serialized Form

Field Summary
private  int authenticationFailures
           
private  String classname
           
private  Timestamp creationDate
           
private  long credentialId
           
private  boolean enabled
           
private  boolean encoded
           
private  Date expirationDate
           
private  boolean expired
           
private  Timestamp lastAuthenticationDate
           
private  Timestamp modifiedDate
           
private  Timestamp previousAuthenticationDate
           
private  long principalId
           
private static long serialVersionUID
          The serial version uid.
private  int type
           
private  boolean updateRequired
           
private  String value
           
 
Fields inherited from interface org.apache.jetspeed.security.om.InternalCredential
MAX_DATE, PRIVATE, PUBLIC
 
Constructor Summary
InternalCredentialImpl()
          InternalCredential implementation default constructor.
InternalCredentialImpl(org.apache.jetspeed.security.om.InternalCredential credential, String classname)
          InternalCredentialImpl copy constructor given another InternalCredential and overriding classname
InternalCredentialImpl(long principalId, String value, int type, String classname)
          InternalCredentialImpl constructor given a value, type and classname.
 
Method Summary
 boolean equals(Object object)
          Compares this InternalCredential to the provided credential and check if they are equal.
 int getAuthenticationFailures()
           
 String getClassname()
           
 Timestamp getCreationDate()
           
 long getCredentialId()
           
 Date getExpirationDate()
           
 Timestamp getLastAuthenticationDate()
           
 Timestamp getModifiedDate()
           
 Timestamp getPreviousAuthenticationDate()
           
 long getPrincipalId()
           
 int getType()
           
 String getValue()
           
 boolean isEnabled()
           
 boolean isEncoded()
           
 boolean isExpired()
           
 boolean isUpdateRequired()
           
 void setAuthenticationFailures(int authenticationFailures)
           
 void setClassname(String classname)
           
 void setCreationDate(Timestamp creationDate)
           
 void setCredentialId(long credentialId)
           
 void setEnabled(boolean enabled)
           
 void setEncoded(boolean encoded)
           
 void setExpirationDate(Date expirationDate)
           
 void setExpired(boolean expired)
           
 void setLastAuthenticationDate(Timestamp lastAuthenticationDate)
           
 void setModifiedDate(Timestamp modifiedDate)
           
 void setPreviousAuthenticationDate(Timestamp previousAuthenticationDate)
           
 void setPrincipalId(long principalId)
           
 void setType(int type)
           
 void setUpdateRequired(boolean updateRequired)
           
 void setValue(String value)
           
 String toString()
          Convert Node to string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serial version uid.

See Also:
Constant Field Values

credentialId

private long credentialId

principalId

private long principalId

value

private String value

updateRequired

private boolean updateRequired

encoded

private boolean encoded

enabled

private boolean enabled

authenticationFailures

private int authenticationFailures

expired

private boolean expired

expirationDate

private Date expirationDate

type

private int type

classname

private String classname

creationDate

private Timestamp creationDate

modifiedDate

private Timestamp modifiedDate

previousAuthenticationDate

private Timestamp previousAuthenticationDate

lastAuthenticationDate

private Timestamp lastAuthenticationDate
Constructor Detail

InternalCredentialImpl

public InternalCredentialImpl()

InternalCredential implementation default constructor.


InternalCredentialImpl

public InternalCredentialImpl(long principalId,
                              String value,
                              int type,
                              String classname)

InternalCredentialImpl constructor given a value, type and classname.

Parameters:
principalId - The principal id.
value - The value.
type - The type.
classname - The classname.

InternalCredentialImpl

public InternalCredentialImpl(org.apache.jetspeed.security.om.InternalCredential credential,
                              String classname)

InternalCredentialImpl copy constructor given another InternalCredential and overriding classname

Parameters:
credential - The credential to copy from
classname - The classname for the new credential
Method Detail

getCredentialId

public long getCredentialId()
Specified by:
getCredentialId in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.getCredentialId()

setCredentialId

public void setCredentialId(long credentialId)
Specified by:
setCredentialId in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setCredentialId(long)

getPrincipalId

public long getPrincipalId()
Specified by:
getPrincipalId in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.getPrincipalId()

setPrincipalId

public void setPrincipalId(long principalId)
Specified by:
setPrincipalId in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setPrincipalId(long)

getValue

public String getValue()
Specified by:
getValue in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.getValue()

setValue

public void setValue(String value)
Specified by:
setValue in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setValue(java.lang.String)

isUpdateRequired

public boolean isUpdateRequired()
Specified by:
isUpdateRequired in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.isUpdateRequired()

setUpdateRequired

public void setUpdateRequired(boolean updateRequired)
Specified by:
setUpdateRequired in interface org.apache.jetspeed.security.om.InternalCredential

isEncoded

public boolean isEncoded()
Specified by:
isEncoded in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.isEncoded()

setEncoded

public void setEncoded(boolean encoded)
Specified by:
setEncoded in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setEncoded(boolean)

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.isEnabled()

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setEnabled(boolean)

getAuthenticationFailures

public int getAuthenticationFailures()
Specified by:
getAuthenticationFailures in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.getAuthenticationFailures()

setAuthenticationFailures

public void setAuthenticationFailures(int authenticationFailures)
Specified by:
setAuthenticationFailures in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setAuthenticationFailures(int)

isExpired

public boolean isExpired()
Specified by:
isExpired in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.isExpired()

setExpired

public void setExpired(boolean expired)
Specified by:
setExpired in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setExpired(boolean)

getExpirationDate

public Date getExpirationDate()
Specified by:
getExpirationDate in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.getExpirationDate()

setExpirationDate

public void setExpirationDate(Date expirationDate)
Specified by:
setExpirationDate in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setExpirationDate(java.sql.Date)

getType

public int getType()
Specified by:
getType in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.getType()

setType

public void setType(int type)
Specified by:
setType in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setType(int)

getClassname

public String getClassname()
Specified by:
getClassname in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.getClassname()

setClassname

public void setClassname(String classname)
Specified by:
setClassname in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setClassname(java.lang.String)

getCreationDate

public Timestamp getCreationDate()
Specified by:
getCreationDate in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.getCreationDate()

setCreationDate

public void setCreationDate(Timestamp creationDate)
Specified by:
setCreationDate in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setCreationDate(java.sql.Timestamp)

getModifiedDate

public Timestamp getModifiedDate()
Specified by:
getModifiedDate in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.getModifiedDate()

setModifiedDate

public void setModifiedDate(Timestamp modifiedDate)
Specified by:
setModifiedDate in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setModifiedDate(java.sql.Timestamp)

getPreviousAuthenticationDate

public Timestamp getPreviousAuthenticationDate()
Specified by:
getPreviousAuthenticationDate in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.getPreviousAuthenticationDate()

setPreviousAuthenticationDate

public void setPreviousAuthenticationDate(Timestamp previousAuthenticationDate)
Specified by:
setPreviousAuthenticationDate in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setPreviousAuthenticationDate(java.sql.Timestamp)

getLastAuthenticationDate

public Timestamp getLastAuthenticationDate()
Specified by:
getLastAuthenticationDate in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.getLastAuthenticationDate()

setLastAuthenticationDate

public void setLastAuthenticationDate(Timestamp lastAuthenticationDate)
Specified by:
setLastAuthenticationDate in interface org.apache.jetspeed.security.om.InternalCredential
See Also:
InternalCredential.setLastAuthenticationDate(java.sql.Timestamp)

equals

public boolean equals(Object object)

Compares this InternalCredential to the provided credential and check if they are equal.

return Whether the InternalCredential are equal.

Overrides:
equals in class Object

toString

public String toString()

Convert Node to string.

Overrides:
toString in class Object
Returns:
The Node string value.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.