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
The creation of
This factory can return a null if it is disabled.
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.
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent.OAuth2ClientClass<?>booleanvoidsetEnabled(boolean enabled) voidsetIdentityServiceConfig(IdentityServiceConfig identityServiceConfig)
-
Constructor Details
-
OAuth2ClientFactoryBean
public OAuth2ClientFactoryBean()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) -
setIdentityServiceConfig
-
getObject
public org.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent.OAuth2Client getObject() throws Exception- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<org.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent.OAuth2Client>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent.OAuth2Client>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<org.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent.OAuth2Client>
-