@Entity public class AuthorizationCodeEntity extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_DATE |
static String |
QUERY_BY_VALUE |
static String |
QUERY_EXPIRATION_BY_DATE |
Constructor and Description |
---|
AuthorizationCodeEntity()
Default constructor.
|
AuthorizationCodeEntity(String code,
AuthenticationHolderEntity authenticationHolder,
Date expiration)
Create a new AuthorizationCodeEntity with the given code and AuthorizationRequestHolder.
|
Modifier and Type | Method and Description |
---|---|
AuthenticationHolderEntity |
getAuthenticationHolder()
The authentication in place when this token was created.
|
String |
getCode() |
Date |
getExpiration() |
Long |
getId() |
void |
setAuthenticationHolder(AuthenticationHolderEntity authenticationHolder) |
void |
setCode(String code) |
void |
setExpiration(Date expiration) |
void |
setId(Long id) |
public static final String QUERY_BY_VALUE
public static final String QUERY_EXPIRATION_BY_DATE
public static final String PARAM_DATE
public AuthorizationCodeEntity()
public AuthorizationCodeEntity(String code, AuthenticationHolderEntity authenticationHolder, Date expiration)
code
- the authorization codeauthRequest
- the AuthoriztionRequestHolder associated with the original code requestpublic AuthenticationHolderEntity getAuthenticationHolder()
public void setAuthenticationHolder(AuthenticationHolderEntity authenticationHolder)
authentication
- the authentication to setpublic Date getExpiration()
public void setExpiration(Date expiration)
Copyright © 2018. All rights reserved.