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 boolean
equals(Object o)
Date
getDateCreated()
Date
getDateExpires()
String
getForPrincipal()
String
getKey()
String
getPurpose()
A String representation of what the purpose of existence is for this key.int
hashCode()
void
setDateCreated(Date dateCreated)
void
setDateExpires(Date dateExpires)
void
setForPrincipal(String forPrincipal)
void
setKey(String key)
void
setPurpose(String purpose)
-
-
-
Constructor Detail
-
JpaAuthenticationKey
public JpaAuthenticationKey()
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKey
in interfaceAuthenticationKey
-
setKey
public void setKey(String key)
- Specified by:
setKey
in interfaceAuthenticationKey
-
getForPrincipal
public String getForPrincipal()
- Specified by:
getForPrincipal
in interfaceAuthenticationKey
-
setForPrincipal
public void setForPrincipal(String forPrincipal)
- Specified by:
setForPrincipal
in interfaceAuthenticationKey
-
getPurpose
public String getPurpose()
Description copied from interface:AuthenticationKey
A String representation of what the purpose of existence is for this key. Examples: "selfservice password reset", "inter system communications", "remember me"- Specified by:
getPurpose
in interfaceAuthenticationKey
- Returns:
-
setPurpose
public void setPurpose(String purpose)
- Specified by:
setPurpose
in interfaceAuthenticationKey
-
getDateCreated
public Date getDateCreated()
- Specified by:
getDateCreated
in interfaceAuthenticationKey
-
setDateCreated
public void setDateCreated(Date dateCreated)
- Specified by:
setDateCreated
in interfaceAuthenticationKey
-
getDateExpires
public Date getDateExpires()
- Specified by:
getDateExpires
in interfaceAuthenticationKey
-
setDateExpires
public void setDateExpires(Date dateExpires)
- Specified by:
setDateExpires
in interfaceAuthenticationKey
-
-