@Entity public class RevokedToken extends Object
RevokedToken
is a simple JPA entity used by the JPABasedRevocationRegistry
to persist the ids of the
revoked
security tokens.
Constructor and Description |
---|
RevokedToken()
Default constructor.
|
RevokedToken(String tokenType,
String tokenId)
Creates an instance of
RevokedToken with the specified token type and token id. |
Modifier and Type | Method and Description |
---|---|
String |
getTokenId()
Obtains the id of the revoked security token.
|
String |
getTokenType()
Obtains the type of the revoked security token.
|
void |
setTokenId(String tokenId)
Sets the id of the revoked security token.
|
void |
setTokenType(String tokenType)
Sets the type of revoked security token.
|
public String getTokenType()
Obtains the type of the revoked security token.
String
containing the revoked token type.public void setTokenType(String tokenType)
Sets the type of revoked security token.
tokenType
- a String
containing the type to be set.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.Copyright © 2017 JBoss by Red Hat. All rights reserved.