Package org.apereo.cas.aup
Class LdapAcceptableUsagePolicyRepository
- java.lang.Object
-
- org.apereo.cas.aup.AbstractPrincipalAttributeAcceptableUsagePolicyRepository
-
- org.apereo.cas.aup.LdapAcceptableUsagePolicyRepository
-
- All Implemented Interfaces:
java.io.Serializable,org.apereo.cas.aup.AcceptableUsagePolicyRepository
public class LdapAcceptableUsagePolicyRepository extends org.apereo.cas.aup.AbstractPrincipalAttributeAcceptableUsagePolicyRepositoryThis 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, java.lang.String aupAttributeName, java.util.List<org.apereo.cas.configuration.model.support.aup.LdapAcceptableUsagePolicyProperties> ldapProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<org.apache.commons.lang3.tuple.Pair<org.ldaptive.ConnectionFactory,org.ldaptive.SearchResponse>>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.authentication.Credential credential)
-
-
-
Constructor Detail
-
LdapAcceptableUsagePolicyRepository
public LdapAcceptableUsagePolicyRepository(org.apereo.cas.ticket.registry.TicketRegistrySupport ticketRegistrySupport, java.lang.String aupAttributeName, java.util.List<org.apereo.cas.configuration.model.support.aup.LdapAcceptableUsagePolicyProperties> ldapProperties)
-
-
Method Detail
-
searchLdapForId
protected java.util.Optional<org.apache.commons.lang3.tuple.Pair<org.ldaptive.ConnectionFactory,org.ldaptive.SearchResponse>> 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, org.apereo.cas.authentication.Credential credential)
-
-