Package org.apereo.cas.services
Class ReturnEncryptedAttributeReleasePolicy
- java.lang.Object
-
- org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy
-
- org.apereo.cas.services.ReturnEncryptedAttributeReleasePolicy
-
- All Implemented Interfaces:
java.io.Serializable
,org.apereo.cas.services.RegisteredServiceAttributeReleasePolicy
,org.springframework.core.Ordered
public class ReturnEncryptedAttributeReleasePolicy extends AbstractRegisteredServiceAttributeReleasePolicy
Return only the collection of allowed attributes out of what's resolved for the principal.- Since:
- 4.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReturnEncryptedAttributeReleasePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
authorizeReleaseOfAllowedAttributes(org.apereo.cas.authentication.principal.Principal principal, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attrs, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.principal.Service selectedService)
Authorize release of allowed attributes map.java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
getAttributesInternal(org.apereo.cas.authentication.principal.Principal principal, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attrs, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.principal.Service selectedService)
Gets the attributes internally from the implementation.-
Methods inherited from class org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy
getAttributes, getConsentableAttributes, getReleasedByDefaultAttributes, insertPrincipalIdAsAttributeIfNeeded, postLoad, resolveAttributesFromAttributeDefinitionStore, resolveAttributesFromPrincipalAttributeRepository, returnFinalAttributesCollection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apereo.cas.services.RegisteredServiceAttributeReleasePolicy
getConsentPolicy, getName, getOrder, getPrincipalAttributesRepository, isAuthorizedToReleaseAuthenticationAttributes, isAuthorizedToReleaseCredentialPassword, isAuthorizedToReleaseProxyGrantingTicket, setAttributeFilter
-
-
-
-
Method Detail
-
getAttributesInternal
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getAttributesInternal(org.apereo.cas.authentication.principal.Principal principal, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attrs, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.principal.Service selectedService)
Description copied from class:AbstractRegisteredServiceAttributeReleasePolicy
Gets the attributes internally from the implementation.- Specified by:
getAttributesInternal
in classAbstractRegisteredServiceAttributeReleasePolicy
- Parameters:
principal
- the principalattrs
- the principal attributesregisteredService
- the serviceselectedService
- the selected service- Returns:
- the attributes allowed for release
-
authorizeReleaseOfAllowedAttributes
protected java.util.Map<java.lang.String,java.util.List<java.lang.Object>> authorizeReleaseOfAllowedAttributes(org.apereo.cas.authentication.principal.Principal principal, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attrs, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.principal.Service selectedService)
Authorize release of allowed attributes map.- Parameters:
principal
- the principalattrs
- the attributesregisteredService
- the registered serviceselectedService
- the selected service- Returns:
- the map
-
-