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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setEncryptionService(ddf.security.encryption.EncryptionService encryptionService)
     
    void
    setPassword(String password)
    Set the password (credentials) to use for getting authenticated contexts.

    Methods inherited from class org.springframework.ldap.core.support.LdapContextSource

    getDirContextInstance

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContextSourceDecrypt

      public ContextSourceDecrypt()
  • Method Details

    • setEncryptionService

      public void setEncryptionService(ddf.security.encryption.EncryptionService encryptionService)
    • setPassword

      public void setPassword(String password)
      Set the password (credentials) to use for getting authenticated contexts.
      Overrides:
      setPassword in class org.springframework.ldap.core.support.AbstractContextSource
      Parameters:
      password - the password.