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
  • Method Details

    • builder

      public static OAuth2CredentialSource.Builder builder(URL tokenEndpointUrl)
      Deprecated.
      Creates a new OAuth2CredentialSource.Builder instance in order to configure and build a OAuth2CredentialSource.
      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 org.wildfly.security.credential.Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException
      Deprecated.
      Specified by:
      getCredentialAcquireSupport in interface org.wildfly.security.credential.source.CredentialSource
      Throws:
      IOException
    • getCredential

      public <C extends org.wildfly.security.credential.Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException
      Deprecated.
      Specified by:
      getCredential in interface org.wildfly.security.credential.source.CredentialSource
      Throws:
      IOException