Class LdapAcceptableUsagePolicyRepository

  • All Implemented Interfaces:
    java.io.Serializable, org.apereo.cas.aup.AcceptableUsagePolicyRepository, org.springframework.beans.factory.DisposableBean

    public class LdapAcceptableUsagePolicyRepository
    extends org.apereo.cas.aup.BaseAcceptableUsagePolicyRepository
    implements org.springframework.beans.factory.DisposableBean
    This is LdapAcceptableUsagePolicyRepository. Examines the principal attribute collection to determine if the policy has been accepted, and if not, allows for a configurable way so that user's choice can later be remembered and saved back into the LDAP instance.
    Since:
    4.2
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.apereo.cas.aup.BaseAcceptableUsagePolicyRepository

        aupProperties, ticketRegistrySupport
    • Constructor Summary

      Constructors 
      Constructor Description
      LdapAcceptableUsagePolicyRepository​(org.apereo.cas.ticket.registry.TicketRegistrySupport ticketRegistrySupport, org.apereo.cas.configuration.model.support.aup.AcceptableUsagePolicyProperties aupProperties, java.util.Map<java.lang.String,​org.ldaptive.ConnectionFactory> connectionFactoryList)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      protected java.util.Optional<org.apache.commons.lang3.tuple.Triple<org.ldaptive.ConnectionFactory,​org.ldaptive.SearchResponse,​org.apereo.cas.configuration.model.support.aup.LdapAcceptableUsagePolicyProperties>> searchLdapForId​(org.apereo.cas.configuration.model.support.aup.LdapAcceptableUsagePolicyProperties ldap, java.lang.String id)
      Search ldap for id and return optional.
      boolean submit​(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.Credential credential)  
      • Methods inherited from class org.apereo.cas.aup.BaseAcceptableUsagePolicyRepository

        fetchPolicy, getAcceptedAttributeValue, getPolicyMessageBundleCode, isUsagePolicyAcceptedBy, verify
      • Methods inherited from class java.lang.Object

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

      • LdapAcceptableUsagePolicyRepository

        public LdapAcceptableUsagePolicyRepository​(org.apereo.cas.ticket.registry.TicketRegistrySupport ticketRegistrySupport,
                                                   org.apereo.cas.configuration.model.support.aup.AcceptableUsagePolicyProperties aupProperties,
                                                   java.util.Map<java.lang.String,​org.ldaptive.ConnectionFactory> connectionFactoryList)
    • Method Detail

      • searchLdapForId

        protected java.util.Optional<org.apache.commons.lang3.tuple.Triple<org.ldaptive.ConnectionFactory,​org.ldaptive.SearchResponse,​org.apereo.cas.configuration.model.support.aup.LdapAcceptableUsagePolicyProperties>> searchLdapForId​(org.apereo.cas.configuration.model.support.aup.LdapAcceptableUsagePolicyProperties ldap,
                                                                                                                                                                                                                                                       java.lang.String id)
                                                                                                                                                                                                                                                throws java.lang.Exception
        Search ldap for id and return optional.
        Parameters:
        ldap - the ldap
        id - the id
        Returns:
        the optional
        Throws:
        java.lang.Exception - the exception
      • submit

        public boolean submit​(org.springframework.webflow.execution.RequestContext requestContext,
                              org.apereo.cas.authentication.Credential credential)
        Specified by:
        submit in interface org.apereo.cas.aup.AcceptableUsagePolicyRepository
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean