Package org.apereo.cas.consent
Interface ConsentEngine
-
- All Superinterfaces:
java.io.Serializable
public interface ConsentEngine extends java.io.SerializableThis isConsentEngine.- Since:
- 5.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConsentDecisionfindConsentDecision(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication)Find consent decision consent decision.ConsentRepositorygetConsentRepository()Gets consent repository.ConsentQueryResultisConsentRequiredFor(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication)Is consent required?java.util.Map<java.lang.String,java.util.List<java.lang.Object>>resolveConsentableAttributesFrom(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService)Gets consentable attributes.java.util.Map<java.lang.String,java.util.List<java.lang.Object>>resolveConsentableAttributesFrom(ConsentDecision decision)Gets consentable attributes from an existing consent decision.ConsentDecisionstoreConsentDecision(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, long reminder, java.time.temporal.ChronoUnit reminderTimeUnit, ConsentReminderOptions options)Store consent decision.
-
-
-
Method Detail
-
storeConsentDecision
ConsentDecision storeConsentDecision(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, long reminder, java.time.temporal.ChronoUnit reminderTimeUnit, ConsentReminderOptions options)
Store consent decision.- Parameters:
service- the serviceregisteredService- the registered serviceauthentication- the authenticationreminder- the reminderreminderTimeUnit- the reminder time unitoptions- the options- Returns:
- the stored decision
-
findConsentDecision
ConsentDecision findConsentDecision(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication)
Find consent decision consent decision.- Parameters:
service- the serviceregisteredService- the registered serviceauthentication- the authentication- Returns:
- the consent decision
-
resolveConsentableAttributesFrom
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> resolveConsentableAttributesFrom(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService)Gets consentable attributes.- Parameters:
authentication- the authenticationservice- the serviceregisteredService- the registered service- Returns:
- the consentable attributes
-
resolveConsentableAttributesFrom
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> resolveConsentableAttributesFrom(ConsentDecision decision)
Gets consentable attributes from an existing consent decision. Typically decisions are signed and encoded, so this op will need to ensure the correct attribute names and values in the existing decision record are produced.- Parameters:
decision- the decision- Returns:
- the consentable attributes
-
isConsentRequiredFor
ConsentQueryResult isConsentRequiredFor(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication)
Is consent required?- Parameters:
service- the serviceregisteredService- the registered serviceauthentication- the authentication- Returns:
- true /false
-
getConsentRepository
ConsentRepository getConsentRepository()
Gets consent repository.- Returns:
- the consent repository
-
-