Package org.apereo.cas.aup
Class LdapAcceptableUsagePolicyRepository
- java.lang.Object
-
- org.apereo.cas.aup.BaseAcceptableUsagePolicyRepository
-
- org.apereo.cas.aup.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.DisposableBeanThis isLdapAcceptableUsagePolicyRepository. 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
-
-
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 voiddestroy()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.booleansubmit(org.springframework.webflow.execution.RequestContext requestContext)org.apereo.cas.aup.AcceptableUsagePolicyStatusverify(org.springframework.webflow.execution.RequestContext requestContext)
-
-
-
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
-
verify
public org.apereo.cas.aup.AcceptableUsagePolicyStatus verify(org.springframework.webflow.execution.RequestContext requestContext)
- Specified by:
verifyin interfaceorg.apereo.cas.aup.AcceptableUsagePolicyRepository- Overrides:
verifyin classorg.apereo.cas.aup.BaseAcceptableUsagePolicyRepository
-
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.ExceptionSearch ldap for id and return optional.- Parameters:
ldap- the ldapid- the id- Returns:
- the optional
- Throws:
java.lang.Exception- the exception
-
submit
public boolean submit(org.springframework.webflow.execution.RequestContext requestContext)
- Specified by:
submitin interfaceorg.apereo.cas.aup.AcceptableUsagePolicyRepository
-
destroy
public void destroy()
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-
-