Class InternalCrowdRememberMeToken
java.lang.Object
com.atlassian.crowd.model.rememberme.InternalCrowdRememberMeToken
- All Implemented Interfaces:
CrowdRememberMeToken
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionInternalCrowdRememberMeToken
(Long id, String token, String username, Long directoryId, LocalDateTime createdTime, LocalDateTime usedTime, String series, String remoteAddress) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
getId()
getToken()
int
hashCode()
void
setCreatedTime
(LocalDateTime createdTime) void
setDirectoryId
(Long directoryId) void
void
setRemoteAddress
(String remoteAddress) void
void
void
setUsedTime
(LocalDateTime usedTime) void
setUsername
(String username) toString()
-
Constructor Details
-
InternalCrowdRememberMeToken
public InternalCrowdRememberMeToken() -
InternalCrowdRememberMeToken
public InternalCrowdRememberMeToken(Long id, String token, String username, Long directoryId, LocalDateTime createdTime, LocalDateTime usedTime, String series, String remoteAddress)
-
-
Method Details
-
setId
-
setToken
-
setDirectoryId
-
setUsedTime
-
setCreatedTime
-
setRemoteAddress
-
setSeries
-
setUsername
-
getId
- Specified by:
getId
in interfaceCrowdRememberMeToken
- Returns:
- the id of this auth token.
-
getToken
- Specified by:
getToken
in interfaceCrowdRememberMeToken
- Returns:
- a base64 encoded random string.
-
getUsername
- Specified by:
getUsername
in interfaceCrowdRememberMeToken
- Returns:
- The user name associated with this token
-
getDirectoryId
- Specified by:
getDirectoryId
in interfaceCrowdRememberMeToken
- Returns:
- directory id associated with the token
-
getCreatedTime
- Specified by:
getCreatedTime
in interfaceCrowdRememberMeToken
- Returns:
- the time at which this token will expire
-
getUsedTime
- Specified by:
getUsedTime
in interfaceCrowdRememberMeToken
- Returns:
- the time at which this token will expire
-
getSeries
- Specified by:
getSeries
in interfaceCrowdRememberMeToken
- Returns:
- a random string denoting the series of tokens for a user
-
getRemoteAddress
- Specified by:
getRemoteAddress
in interfaceCrowdRememberMeToken
- Returns:
- remote address if available
-
builder
-
builder
-
equals
-
hashCode
public int hashCode() -
toString
-