public class RSATokenVerifier extends Object
Modifier and Type | Method and Description |
---|---|
RSATokenVerifier |
checkActive(boolean checkActive) |
RSATokenVerifier |
checkRealmUrl(boolean checkRealmUrl) |
RSATokenVerifier |
checkTokenType(boolean checkTokenType) |
static RSATokenVerifier |
create(String tokenString) |
JWSHeader |
getHeader() |
AccessToken |
getToken() |
RSATokenVerifier |
parse() |
RSATokenVerifier |
publicKey(PublicKey publicKey) |
RSATokenVerifier |
realmUrl(String realmUrl) |
RSATokenVerifier |
verify() |
static AccessToken |
verifyToken(String tokenString,
PublicKey publicKey,
String realmUrl) |
static AccessToken |
verifyToken(String tokenString,
PublicKey publicKey,
String realmUrl,
boolean checkActive,
boolean checkTokenType) |
public static RSATokenVerifier create(String tokenString)
public static AccessToken verifyToken(String tokenString, PublicKey publicKey, String realmUrl) throws VerificationException
VerificationException
public static AccessToken verifyToken(String tokenString, PublicKey publicKey, String realmUrl, boolean checkActive, boolean checkTokenType) throws VerificationException
VerificationException
public RSATokenVerifier publicKey(PublicKey publicKey)
public RSATokenVerifier realmUrl(String realmUrl)
public RSATokenVerifier checkTokenType(boolean checkTokenType)
public RSATokenVerifier checkActive(boolean checkActive)
public RSATokenVerifier checkRealmUrl(boolean checkRealmUrl)
public RSATokenVerifier parse() throws VerificationException
VerificationException
public AccessToken getToken() throws VerificationException
VerificationException
public JWSHeader getHeader() throws VerificationException
VerificationException
public RSATokenVerifier verify() throws VerificationException
VerificationException
Copyright © 2018 JBoss by Red Hat. All rights reserved.