Class ClaimsHandlerManager

java.lang.Object
ddf.security.sts.claimsHandler.ClaimsHandlerManager

public class ClaimsHandlerManager extends Object
Creates and registers LDAP and Role claims handlers.
  • Field Details

  • Constructor Details

    • ClaimsHandlerManager

      public ClaimsHandlerManager(ddf.security.encryption.EncryptionService encryptService)
      Creates a new instance of the ClaimsHandlerManager.
      Parameters:
      encryptService - Encryption service used to decrypt passwords from the configurations.
  • Method Details

    • update

      public void update(Map<String,Object> props)
      Callback method that is called when configuration is updated. Also called by the blueprint init-method when all properties have been set.
      Parameters:
      props - Map of properties.
    • destroy

      public void destroy()
    • createConnectionFactory

      protected org.forgerock.opendj.ldap.ConnectionFactory createConnectionFactory(List<String> urls, Boolean startTls, String loadBalancingAlgorithm) throws org.forgerock.opendj.ldap.LdapException
      Throws:
      org.forgerock.opendj.ldap.LdapException
    • createLdapConnectionFactory

      protected org.forgerock.opendj.ldap.LDAPConnectionFactory createLdapConnectionFactory(String url, Boolean startTls) throws org.forgerock.opendj.ldap.LdapException
      Throws:
      org.forgerock.opendj.ldap.LdapException
    • getContext

      protected org.osgi.framework.BundleContext getContext()
    • setUrl

      public void setUrl(String... url)
    • setLoadBalancing

      public void setLoadBalancing(String loadBalancing)
    • setStartTls

      public void setStartTls(boolean startTls)
    • setStartTls

      public void setStartTls(String startTls)
    • setLdapBindUserDn

      public void setLdapBindUserDn(String bindUserDn)
    • setPassword

      public void setPassword(String password)
    • setLoginUserAttribute

      public void setLoginUserAttribute(String loginUserAttribute)
    • setMembershipUserAttribute

      public void setMembershipUserAttribute(String membershipUserAttribute)
    • setUserBaseDn

      public void setUserBaseDn(String userBaseDn)
    • setGroupObjectClass

      public void setGroupObjectClass(String objectClass)
    • setPersonObjectClass

      public void setPersonObjectClass(String objectClass)
    • setMemberNameAttribute

      public void setMemberNameAttribute(String memberNameAttribute)
    • setGroupBaseDn

      public void setGroupBaseDn(String groupBaseDn)
    • setPropertyFileLocation

      public void setPropertyFileLocation(String propertyFileLocation)
    • setBindMethod

      public void setBindMethod(String bindMethod)
    • setRealm

      public void setRealm(String realm)
    • setKdcAddress

      public void setKdcAddress(String kdcAddress)
    • setOverrideCertDn

      public void setOverrideCertDn(boolean overrideCertDn)
    • configure

      public void configure()
    • createKeyManagerFactory

      public static KeyManagerFactory createKeyManagerFactory(String keyStoreLoc, String keyStorePass) throws IOException
      Throws:
      IOException
    • createTrustManagerFactory

      public static TrustManagerFactory createTrustManagerFactory(String trustStoreLoc, String trustStorePass) throws IOException
      Throws:
      IOException
    • setSecurityLogger

      public void setSecurityLogger(ddf.security.audit.SecurityLogger securityLogger)
    • setSubjectOperations

      public void setSubjectOperations(ddf.security.SubjectOperations subjectOperations)