Class JpaAuthenticationKey
- java.lang.Object
-
- org.apache.archiva.redback.keys.jpa.model.JpaAuthenticationKey
-
- All Implemented Interfaces:
Serializable,AuthenticationKey
@Entity public class JpaAuthenticationKey extends Object implements AuthenticationKey
Authentication Key implementation for JPA. The table names are set to match the legacy JDO tables.- Author:
- Martin Stockhammer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaAuthenticationKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)DategetDateCreated()DategetDateExpires()StringgetForPrincipal()StringgetKey()StringgetPurpose()A String representation of what the purpose of existence is for this key.inthashCode()voidsetDateCreated(Date dateCreated)voidsetDateExpires(Date dateExpires)voidsetForPrincipal(String forPrincipal)voidsetKey(String key)voidsetPurpose(String purpose)
-
-
-
Constructor Detail
-
JpaAuthenticationKey
public JpaAuthenticationKey()
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceAuthenticationKey
-
setKey
public void setKey(String key)
- Specified by:
setKeyin interfaceAuthenticationKey
-
getForPrincipal
public String getForPrincipal()
- Specified by:
getForPrincipalin interfaceAuthenticationKey
-
setForPrincipal
public void setForPrincipal(String forPrincipal)
- Specified by:
setForPrincipalin interfaceAuthenticationKey
-
getPurpose
public String getPurpose()
Description copied from interface:AuthenticationKeyA String representation of what the purpose of existence is for this key. Examples: "selfservice password reset", "inter system communications", "remember me"- Specified by:
getPurposein interfaceAuthenticationKey- Returns:
-
setPurpose
public void setPurpose(String purpose)
- Specified by:
setPurposein interfaceAuthenticationKey
-
getDateCreated
public Date getDateCreated()
- Specified by:
getDateCreatedin interfaceAuthenticationKey
-
setDateCreated
public void setDateCreated(Date dateCreated)
- Specified by:
setDateCreatedin interfaceAuthenticationKey
-
getDateExpires
public Date getDateExpires()
- Specified by:
getDateExpiresin interfaceAuthenticationKey
-
setDateExpires
public void setDateExpires(Date dateExpires)
- Specified by:
setDateExpiresin interfaceAuthenticationKey
-
-