com.infilos.auth.token.TokenClient Maven / Gradle / Ivy
The newest version!
package com.infilos.auth.token;
import org.pac4j.core.client.DirectClient;
import org.pac4j.core.credentials.TokenCredentials;
import org.pac4j.core.credentials.extractor.CredentialsExtractor;
import org.pac4j.jwt.credentials.authenticator.JwtAuthenticator;
/**
* Profile extractor wrapper for Pac4j, used to extract profile and credentials.
*/
public class TokenClient extends DirectClient {
public TokenClient(final CredentialsExtractor credentialsExtractor,
final JwtAuthenticator tokenAuthenticator) {
defaultCredentialsExtractor(credentialsExtractor);
defaultAuthenticator(tokenAuthenticator);
}
@Override
protected void clientInit() {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy