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.ACredentialSourcecapable of authenticating against a OAuth2 compliant authorization server and obtaining access tokens in form of aBearerTokenCredential.- Author:
- Pedro Igor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOAuth2CredentialSource.BuilderDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OAuth2CredentialSource.Builderbuilder(URL tokenEndpointUrl)Deprecated.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.
-
-
-
Method Detail
-
builder
public static OAuth2CredentialSource.Builder builder(URL tokenEndpointUrl)
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
-
-