Class LdapAcceptableUsagePolicyRepository

java.lang.Object
org.apereo.cas.aup.BaseAcceptableUsagePolicyRepository
org.apereo.cas.aup.LdapAcceptableUsagePolicyRepository
All Implemented Interfaces:
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:
  • Field Summary

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

    aupProperties, ticketRegistrySupport

    Fields inherited from interface org.apereo.cas.aup.AcceptableUsagePolicyRepository

    BEAN_NAME, CONDITION_AUP_ENABLED
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
     
    protected 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, String id)
    Search ldap for id and return optional.
    boolean
    submit(org.springframework.webflow.execution.RequestContext requestContext)
     
    org.apereo.cas.aup.AcceptableUsagePolicyStatus
    verify(org.springframework.webflow.execution.RequestContext requestContext)
     

    Methods inherited from class org.apereo.cas.aup.BaseAcceptableUsagePolicyRepository

    fetchPolicy, getAcceptedAttributeValue, getPolicyMessageBundleCode, isUsagePolicyAcceptedBy, isUsagePolicyAcceptedBy

    Methods inherited from class java.lang.Object

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

    • LdapAcceptableUsagePolicyRepository

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

    • verify

      public org.apereo.cas.aup.AcceptableUsagePolicyStatus verify(org.springframework.webflow.execution.RequestContext requestContext)
      Specified by:
      verify in interface org.apereo.cas.aup.AcceptableUsagePolicyRepository
      Overrides:
      verify in class org.apereo.cas.aup.BaseAcceptableUsagePolicyRepository
    • searchLdapForId

      protected 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, String id) throws Exception
      Search ldap for id and return optional.
      Parameters:
      ldap - the ldap
      id - the id
      Returns:
      the optional
      Throws:
      Exception - the exception
    • submit

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

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