@Entity public class SecurityToken extends Object
SecurityToken is a simple JPA entity used by the JPABasedTokenRegistry to persist tokens.
| Constructor and Description |
|---|
SecurityToken()
Default constructor.
|
SecurityToken(String tokenId,
Object token) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getToken()
Gets the byte array representation of the token object.
|
Date |
getTokenCreationDate()
Gets the
Date which this token was created. |
String |
getTokenId()
Obtains the id of the revoked security token.
|
void |
setToken(byte[] token)
Sets the byte array representation of the token object.
|
void |
setTokenCreationDate(Date tokenCreationDate)
Sets the
Date which this token was created. |
void |
setTokenId(String tokenId)
Sets the id of the revoked security token.
|
Object |
unmarshalToken()
Unmarshall the
token byte array to a AssertionType
instance. |
public String getTokenId()
Obtains the id of the revoked security token.
String containing the revoked token id.public void setTokenId(String tokenId)
Sets the id of the revoked security token.
tokenId - a String containing the id to be set.public Date getTokenCreationDate()
Gets the Date which this token was created.
public void setTokenCreationDate(Date tokenCreationDate)
Sets the Date which this token was created.
tokenCreationDate - public void setToken(byte[] token)
Sets the byte array representation of the token object.
token - public byte[] getToken()
Gets the byte array representation of the token object.
public Object unmarshalToken()
Unmarshall the token byte array to a AssertionType
instance.
Copyright © 2018 JBoss by Red Hat. All rights reserved.