Package org.apereo.cas.services
Class DenyAllAttributeReleasePolicy
- java.lang.Object
-
- org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy
-
- org.apereo.cas.services.DenyAllAttributeReleasePolicy
-
- All Implemented Interfaces:
java.io.Serializable
,org.apereo.cas.services.RegisteredServiceAttributeReleasePolicy
,org.springframework.core.Ordered
public class DenyAllAttributeReleasePolicy extends AbstractRegisteredServiceAttributeReleasePolicy
A deny rule to refuse all service from receiving attributes, whether default or not.- Since:
- 5.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DenyAllAttributeReleasePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
getAttributesInternal(org.apereo.cas.services.RegisteredServiceAttributeReleasePolicyContext context, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes)
Gets the attributes internally from the implementation.boolean
isAuthorizedToReleaseAuthenticationAttributes()
boolean
isAuthorizedToReleaseCredentialPassword()
boolean
isAuthorizedToReleaseProxyGrantingTicket()
boolean
isExcludeDefaultAttributes()
protected java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
returnFinalAttributesCollection(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributesToRelease, org.apereo.cas.services.RegisteredService service)
Return the final attributes collection.-
Methods inherited from class org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy
determineRequestedAttributeDefinitions, getAttributes, getConsentableAttributes, getReleasedByDefaultAttributes, insertPrincipalIdAsAttributeIfNeeded, postLoad, resolveAttributesFromAttributeDefinitionStore, resolveAttributesFromPrincipalAttributeRepository, supports
-
-
-
-
Method Detail
-
getAttributesInternal
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getAttributesInternal(org.apereo.cas.services.RegisteredServiceAttributeReleasePolicyContext context, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes)
Description copied from class:AbstractRegisteredServiceAttributeReleasePolicy
Gets the attributes internally from the implementation.- Specified by:
getAttributesInternal
in classAbstractRegisteredServiceAttributeReleasePolicy
- Parameters:
context
- the contextattributes
- the principal attributes- Returns:
- the attributes allowed for release
-
isExcludeDefaultAttributes
public boolean isExcludeDefaultAttributes()
-
isAuthorizedToReleaseCredentialPassword
public boolean isAuthorizedToReleaseCredentialPassword()
-
isAuthorizedToReleaseProxyGrantingTicket
public boolean isAuthorizedToReleaseProxyGrantingTicket()
-
isAuthorizedToReleaseAuthenticationAttributes
public boolean isAuthorizedToReleaseAuthenticationAttributes()
-
returnFinalAttributesCollection
protected java.util.Map<java.lang.String,java.util.List<java.lang.Object>> returnFinalAttributesCollection(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributesToRelease, org.apereo.cas.services.RegisteredService service)
Description copied from class:AbstractRegisteredServiceAttributeReleasePolicy
Return the final attributes collection. Subclasses may override this minute to impose last minute rules.- Overrides:
returnFinalAttributesCollection
in classAbstractRegisteredServiceAttributeReleasePolicy
- Parameters:
attributesToRelease
- the attributes to releaseservice
- the service- Returns:
- the map
-
-