Class OAuth2ClientFactoryBean

java.lang.Object
org.alfresco.repo.security.authentication.identityservice.OAuth2ClientFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent.OAuth2Client>

public class OAuth2ClientFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent.OAuth2Client>
Creates an instance of IdentityServiceAuthenticationComponent.OAuth2Client.
The creation of IdentityServiceAuthenticationComponent.OAuth2Client requires connection to the Identity Service (Keycloak), disable this factory if the server cannot be reached.
This factory can return a null if it is disabled.
  • Constructor Details

    • OAuth2ClientFactoryBean

      public OAuth2ClientFactoryBean()
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
    • setIdentityServiceConfig

      public void setIdentityServiceConfig(IdentityServiceConfig identityServiceConfig)
    • getObject

      public org.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent.OAuth2Client getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent.OAuth2Client>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent.OAuth2Client>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<org.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent.OAuth2Client>