Class RememberMeToken
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.authn.RememberMeToken
-
public class RememberMeToken extends Object
Contains information used by remember me functionality- Author:
- P.Piernik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RememberMeToken.LoginMachineDetails
-
Constructor Summary
Constructors Constructor Description RememberMeToken()
RememberMeToken(long entity, RememberMeToken.LoginMachineDetails machineDetails, Date loginTime, AuthenticationOptionKey firstFactorAuthnOptionId, AuthenticationOptionKey secondFactorAuthnOptionId, byte[] rememberMeTokenHash, RememberMePolicy rememberMePolicy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getEntity()
AuthenticationOptionKey
getFirstFactorAuthnOptionId()
static RememberMeToken
getInstanceFromJson(byte[] json)
Date
getLoginTime()
RememberMeToken.LoginMachineDetails
getMachineDetails()
RememberMePolicy
getRememberMePolicy()
byte[]
getRememberMeTokenHash()
AuthenticationOptionKey
getSecondFactorAuthnOptionId()
byte[]
getSerialized()
void
setEntity(long entity)
void
setFirstFactorAuthnOptionId(AuthenticationOptionKey firstFactorAuthnOptionId)
void
setLoginTime(Date loginTime)
void
setMachineDetails(RememberMeToken.LoginMachineDetails machineDetails)
void
setRememberMePolicy(RememberMePolicy rememberMePolicy)
void
setRememberMeTokenHash(byte[] rememberMeTokenHash)
void
setSecondFactorAuthnOptionId(AuthenticationOptionKey secondFactorAuthnOptionId)
-
-
-
Constructor Detail
-
RememberMeToken
public RememberMeToken()
-
RememberMeToken
public RememberMeToken(long entity, RememberMeToken.LoginMachineDetails machineDetails, Date loginTime, AuthenticationOptionKey firstFactorAuthnOptionId, AuthenticationOptionKey secondFactorAuthnOptionId, byte[] rememberMeTokenHash, RememberMePolicy rememberMePolicy)
-
-
Method Detail
-
getInstanceFromJson
public static RememberMeToken getInstanceFromJson(byte[] json)
-
getSerialized
public byte[] getSerialized() throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getEntity
public long getEntity()
-
setEntity
public void setEntity(long entity)
-
getMachineDetails
public RememberMeToken.LoginMachineDetails getMachineDetails()
-
setMachineDetails
public void setMachineDetails(RememberMeToken.LoginMachineDetails machineDetails)
-
getLoginTime
public Date getLoginTime()
-
setLoginTime
public void setLoginTime(Date loginTime)
-
getRememberMeTokenHash
public byte[] getRememberMeTokenHash()
-
setRememberMeTokenHash
public void setRememberMeTokenHash(byte[] rememberMeTokenHash)
-
getRememberMePolicy
public RememberMePolicy getRememberMePolicy()
-
setRememberMePolicy
public void setRememberMePolicy(RememberMePolicy rememberMePolicy)
-
getFirstFactorAuthnOptionId
public AuthenticationOptionKey getFirstFactorAuthnOptionId()
-
setFirstFactorAuthnOptionId
public void setFirstFactorAuthnOptionId(AuthenticationOptionKey firstFactorAuthnOptionId)
-
getSecondFactorAuthnOptionId
public AuthenticationOptionKey getSecondFactorAuthnOptionId()
-
setSecondFactorAuthnOptionId
public void setSecondFactorAuthnOptionId(AuthenticationOptionKey secondFactorAuthnOptionId)
-
-