Package org.wildfly.security.http.oidc
Class BearerTokenRequestAuthenticator
- java.lang.Object
-
- org.wildfly.security.http.oidc.BearerTokenRequestAuthenticator
-
- Direct Known Subclasses:
BasicAuthRequestAuthenticator
,QueryParameterTokenRequestAuthenticator
class BearerTokenRequestAuthenticator extends Object
- Author:
- Bill Burke, Farah Juma
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthChallenge
challenge
protected OidcHttpFacade
facade
protected OidcClientConfiguration
oidcClientConfiguration
private String
surrogate
private AccessToken
token
protected String
tokenString
-
Constructor Summary
Constructors Constructor Description BearerTokenRequestAuthenticator(OidcHttpFacade facade, OidcClientConfiguration oidcClientConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Oidc.AuthOutcome
authenticate()
protected AuthChallenge
challengeResponse(AuthenticationError.Reason reason, String error, String description)
protected AuthChallenge
clientCertChallenge()
AuthChallenge
getChallenge()
String
getSurrogate()
AccessToken
getToken()
String
getTokenString()
private boolean
isVerifyCaller(RealmAccessClaim accessClaim)
protected Oidc.AuthOutcome
verifyToken(String tokenString)
-
-
-
Field Detail
-
facade
protected OidcHttpFacade facade
-
oidcClientConfiguration
protected OidcClientConfiguration oidcClientConfiguration
-
challenge
protected AuthChallenge challenge
-
tokenString
protected String tokenString
-
token
private AccessToken token
-
surrogate
private String surrogate
-
-
Constructor Detail
-
BearerTokenRequestAuthenticator
public BearerTokenRequestAuthenticator(OidcHttpFacade facade, OidcClientConfiguration oidcClientConfiguration)
-
-
Method Detail
-
getChallenge
public AuthChallenge getChallenge()
-
getTokenString
public String getTokenString()
-
getToken
public AccessToken getToken()
-
getSurrogate
public String getSurrogate()
-
authenticate
public Oidc.AuthOutcome authenticate()
-
verifyToken
protected Oidc.AuthOutcome verifyToken(String tokenString)
-
isVerifyCaller
private boolean isVerifyCaller(RealmAccessClaim accessClaim)
-
challengeResponse
protected AuthChallenge challengeResponse(AuthenticationError.Reason reason, String error, String description)
-
clientCertChallenge
protected AuthChallenge clientCertChallenge()
-
-