Package org.pac4j.http.client.direct
Class DirectBearerAuthClient
- java.lang.Object
-
- org.pac4j.core.util.InitializableObject
-
- org.pac4j.core.client.BaseClient<C,U>
-
- org.pac4j.core.client.DirectClient<TokenCredentials,CommonProfile>
-
- org.pac4j.http.client.direct.DirectBearerAuthClient
-
- All Implemented Interfaces:
Client<TokenCredentials,CommonProfile>
public class DirectBearerAuthClient extends DirectClient<TokenCredentials,CommonProfile>
This class is the client to authenticate users directly through RFC 6750 HTTP bearer authentication.
- Since:
- 3.5.0
- Author:
- Graham Leggett
-
-
Field Summary
-
Fields inherited from class org.pac4j.core.client.BaseClient
logger
-
-
Constructor Summary
Constructors Constructor Description DirectBearerAuthClient()
DirectBearerAuthClient(Authenticator tokenAuthenticator)
DirectBearerAuthClient(Authenticator tokenAuthenticator, ProfileCreator profileCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clientInit()
String
getRealmName()
protected TokenCredentials
retrieveCredentials(WebContext context)
void
setRealmName(String realmName)
String
toString()
-
Methods inherited from class org.pac4j.core.client.DirectClient
getCredentials, getLogoutAction, internalInit, redirect
-
Methods inherited from class org.pac4j.core.client.BaseClient
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreator
-
Methods inherited from class org.pac4j.core.util.InitializableObject
init
-
-
-
-
Constructor Detail
-
DirectBearerAuthClient
public DirectBearerAuthClient()
-
DirectBearerAuthClient
public DirectBearerAuthClient(Authenticator tokenAuthenticator)
-
DirectBearerAuthClient
public DirectBearerAuthClient(Authenticator tokenAuthenticator, ProfileCreator profileCreator)
-
-
Method Detail
-
clientInit
protected void clientInit()
- Specified by:
clientInit
in classDirectClient<TokenCredentials,CommonProfile>
-
retrieveCredentials
protected TokenCredentials retrieveCredentials(WebContext context)
- Overrides:
retrieveCredentials
in classBaseClient<TokenCredentials,CommonProfile>
-
getRealmName
public String getRealmName()
-
setRealmName
public void setRealmName(String realmName)
-
toString
public String toString()
- Overrides:
toString
in classBaseClient<TokenCredentials,CommonProfile>
-
-