Package ddf.security.sts.claimsHandler
Class ContextSourceDecrypt
java.lang.Object
org.springframework.ldap.core.support.AbstractContextSource
org.springframework.ldap.core.support.LdapContextSource
ddf.security.sts.claimsHandler.ContextSourceDecrypt
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.ldap.core.ContextSource,org.springframework.ldap.core.support.BaseLdapPathContextSource,org.springframework.ldap.core.support.BaseLdapPathSource
public class ContextSourceDecrypt
extends org.springframework.ldap.core.support.LdapContextSource
This class is only meant to decrypt an encrypted password that is set to the ldap/roles claims
handler. The decrypt code was taken from OracleCatalogProvider
- Author:
- kimjs1
-
Field Summary
Fields inherited from class org.springframework.ldap.core.support.AbstractContextSource
password, SUN_LDAP_POOLING_FLAG, userDn -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetEncryptionService(ddf.security.encryption.EncryptionService encryptionService) voidsetPassword(String password) Set the password (credentials) to use for getting authenticated contexts.Methods inherited from class org.springframework.ldap.core.support.LdapContextSource
getDirContextInstanceMethods inherited from class org.springframework.ldap.core.support.AbstractContextSource
afterPropertiesSet, assembleProviderUrlString, createContext, getAnonymousEnv, getAuthenticatedEnv, getAuthenticationSource, getBaseLdapName, getBaseLdapPath, getBaseLdapPathAsString, getContext, getContextFactory, getDirObjectFactory, getPassword, getReadOnlyContext, getReadWriteContext, getUrls, getUserDn, isAnonymousReadOnly, isPooled, setAnonymousReadOnly, setAuthenticationSource, setAuthenticationStrategy, setBase, setBaseEnvironmentProperties, setCacheEnvironmentProperties, setContextFactory, setDirObjectFactory, setPooled, setReferral, setupAuthenticatedEnvironment, setUrl, setUrls, setUserDn
-
Constructor Details
-
ContextSourceDecrypt
public ContextSourceDecrypt()
-
-
Method Details
-
setEncryptionService
public void setEncryptionService(ddf.security.encryption.EncryptionService encryptionService) -
setPassword
Set the password (credentials) to use for getting authenticated contexts.- Overrides:
setPasswordin classorg.springframework.ldap.core.support.AbstractContextSource- Parameters:
password- the password.
-