Class OAuth2CredentialSource
java.lang.Object
org.wildfly.security.credential.source.OAuth2CredentialSource
- All Implemented Interfaces:
org.wildfly.security.credential.source.CredentialSource
@Deprecated
public class OAuth2CredentialSource
extends Object
implements org.wildfly.security.credential.source.CredentialSource
Deprecated.
A
CredentialSource capable of authenticating against a OAuth2 compliant authorization server and obtaining
access tokens in form of a BearerTokenCredential.- Author:
- Pedro Igor
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.wildfly.security.credential.source.CredentialSource
NONE -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Creates a newOAuth2CredentialSource.Builderinstance in order to configure and build aOAuth2CredentialSource.<C extends Credential>
CgetCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) Deprecated.org.wildfly.security.auth.SupportLevelgetCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.credential.source.CredentialSource
applyToCredential, applyToCredential, applyToCredential, getCredential, getCredential, getCredentialAcquireSupport, getCredentialAcquireSupport, with, without, without, without
-
Method Details
-
builder
Deprecated.Creates a newOAuth2CredentialSource.Builderinstance in order to configure and build aOAuth2CredentialSource.- Parameters:
tokenEndpointUrl- the token endpoint that will be used to obtain OAuth2 access tokens- Returns:
- a new builder instance
-
getCredentialAcquireSupport
public org.wildfly.security.auth.SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException Deprecated.- Specified by:
getCredentialAcquireSupportin interfaceorg.wildfly.security.credential.source.CredentialSource- Throws:
IOException
-
getCredential
public <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException Deprecated.- Specified by:
getCredentialin interfaceorg.wildfly.security.credential.source.CredentialSource- Throws:
IOException
-