Class ExternalLoginModule
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule
-
- org.apache.jackrabbit.oak.spi.security.authentication.external.impl.ExternalLoginModule
-
- All Implemented Interfaces:
LoginModule
public class ExternalLoginModule extends org.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModuleExternalLoginModuleimplements aLoginModulethat uses anExternalIdentityProviderfor authentication.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_IDP_NAMEName of the parameter that configures the name of the external identity provider.static StringPARAM_SYNC_HANDLER_NAMEName of the parameter that configures the name of the synchronization handler.
-
Constructor Summary
Constructors Constructor Description ExternalLoginModule()Default constructor for the OSGIi LoginModuleFactory case and the default non-OSGi JAAS case.ExternalLoginModule(org.apache.jackrabbit.oak.spi.security.ConfigurationParameters osgiConfig)Creates a new ExternalLoginModule with the given OSGi config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabort()protected voidclearState()booleancommit()protected @NotNull Set<Class>getSupportedCredentials()voidinitialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> opts)booleanlogin()booleanlogout()voidsetIdpManager(@NotNull ExternalIdentityProviderManager idpManager)voidsetSyncManager(@NotNull SyncManager syncManager)-
Methods inherited from class org.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule
closeSystemSession, getCredentials, getLoginModuleMonitor, getPrincipalProvider, getPrincipals, getPrincipals, getRoot, getSecurityProvider, getSharedCredentials, getSharedLoginName, getSharedPreAuthLogin, getUserManager, getWhiteboard, logout, onError, setAuthInfo
-
-
-
-
Field Detail
-
PARAM_IDP_NAME
public static final String PARAM_IDP_NAME
Name of the parameter that configures the name of the external identity provider.- See Also:
- Constant Field Values
-
PARAM_SYNC_HANDLER_NAME
public static final String PARAM_SYNC_HANDLER_NAME
Name of the parameter that configures the name of the synchronization handler.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExternalLoginModule
public ExternalLoginModule()
Default constructor for the OSGIi LoginModuleFactory case and the default non-OSGi JAAS case.
-
ExternalLoginModule
public ExternalLoginModule(org.apache.jackrabbit.oak.spi.security.ConfigurationParameters osgiConfig)
Creates a new ExternalLoginModule with the given OSGi config.- Parameters:
osgiConfig- the config
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> opts)
- Specified by:
initializein interfaceLoginModule- Overrides:
initializein classorg.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule
-
login
public boolean login() throws LoginException- Throws:
LoginException
-
commit
public boolean commit()
-
abort
public boolean abort()
- Specified by:
abortin interfaceLoginModule- Overrides:
abortin classorg.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule
-
logout
public boolean logout() throws LoginException- Specified by:
logoutin interfaceLoginModule- Overrides:
logoutin classorg.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule- Throws:
LoginException
-
clearState
protected void clearState()
- Overrides:
clearStatein classorg.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule
-
getSupportedCredentials
@NotNull protected @NotNull Set<Class> getSupportedCredentials()
- Specified by:
getSupportedCredentialsin classorg.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule- Returns:
- the set of credentials classes as exposed by the configured
CredentialsSupportimplementation.
-
setSyncManager
public void setSyncManager(@NotNull @NotNull SyncManager syncManager)
-
setIdpManager
public void setIdpManager(@NotNull @NotNull ExternalIdentityProviderManager idpManager)
-
-