public class DirectBearerAuthClient extends DirectClient<TokenCredentials,CommonProfile>
This class is the client to authenticate users directly through RFC 6750 HTTP bearer authentication.
logger
Constructor and Description |
---|
DirectBearerAuthClient() |
DirectBearerAuthClient(Authenticator tokenAuthenticator) |
DirectBearerAuthClient(Authenticator tokenAuthenticator,
ProfileCreator profileCreator) |
Modifier and Type | Method and Description |
---|---|
protected void |
clientInit()
Initialize the client.
|
String |
getRealmName() |
protected TokenCredentials |
retrieveCredentials(WebContext context)
Retrieve the credentials.
|
void |
setRealmName(String realmName) |
String |
toString() |
getCredentials, getLogoutAction, internalInit, redirect
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreator
init
public DirectBearerAuthClient()
public DirectBearerAuthClient(Authenticator tokenAuthenticator)
public DirectBearerAuthClient(Authenticator tokenAuthenticator, ProfileCreator profileCreator)
protected void clientInit()
DirectClient
clientInit
in class DirectClient<TokenCredentials,CommonProfile>
protected TokenCredentials retrieveCredentials(WebContext context)
BaseClient
retrieveCredentials
in class BaseClient<TokenCredentials,CommonProfile>
context
- the web contextpublic String getRealmName()
public void setRealmName(String realmName)
public String toString()
toString
in class BaseClient<TokenCredentials,CommonProfile>
Copyright © 2019. All rights reserved.