public abstract class AbstractRegisteredServiceAttributeReleasePolicy extends java.lang.Object implements RegisteredServiceAttributeReleasePolicy
Constructor and Description |
---|
AbstractRegisteredServiceAttributeReleasePolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
RegisteredServiceAttributeFilter |
getAttributeFilter() |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes(Principal principal,
Service selectedService,
RegisteredService registeredService)
Gets the attributes, having applied the filter.
|
protected abstract java.util.Map<java.lang.String,java.lang.Object> |
getAttributesInternal(Principal principal,
java.util.Map<java.lang.String,java.lang.Object> attributes,
RegisteredService service)
Gets the attributes internally from the implementation.
|
PrincipalAttributesRepository |
getPrincipalAttributesRepository() |
java.lang.String |
getPrincipalIdAttribute() |
protected java.util.Map<java.lang.String,java.lang.Object> |
getReleasedByDefaultAttributes(Principal p,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Determines a default bundle of attributes that may be released to all services
without the explicit mapping for each service.
|
int |
hashCode() |
protected void |
insertPrincipalIdAsAttributeIfNeeded(Principal principal,
java.util.Map<java.lang.String,java.lang.Object> attributesToRelease,
Service service,
RegisteredService registeredService)
Release principal id as attribute if needed.
|
boolean |
isAuthorizedToReleaseCredentialPassword()
Is authorized to release credential password?
|
boolean |
isAuthorizedToReleaseProxyGrantingTicket()
Is authorized to release proxy granting ticket?
|
boolean |
isExcludeDefaultAttributes() |
protected java.util.Map<java.lang.String,java.lang.Object> |
returnFinalAttributesCollection(java.util.Map<java.lang.String,java.lang.Object> attributesToRelease,
RegisteredService service)
Return the final attributes collection.
|
void |
setAttributeFilter(RegisteredServiceAttributeFilter filter)
Sets the attribute filter.
|
void |
setAuthorizedToReleaseCredentialPassword(boolean authorizedToReleaseCredentialPassword) |
void |
setAuthorizedToReleaseProxyGrantingTicket(boolean authorizedToReleaseProxyGrantingTicket) |
void |
setExcludeDefaultAttributes(boolean excludeDefaultAttributes) |
void |
setPrincipalAttributesRepository(PrincipalAttributesRepository repository) |
void |
setPrincipalIdAttribute(java.lang.String principalIdAttribute) |
java.lang.String |
toString() |
public AbstractRegisteredServiceAttributeReleasePolicy()
public void setAttributeFilter(RegisteredServiceAttributeFilter filter)
RegisteredServiceAttributeReleasePolicy
setAttributeFilter
in interface RegisteredServiceAttributeReleasePolicy
filter
- the new attribute filterpublic void setPrincipalAttributesRepository(PrincipalAttributesRepository repository)
public PrincipalAttributesRepository getPrincipalAttributesRepository()
public RegisteredServiceAttributeFilter getAttributeFilter()
public java.lang.String getPrincipalIdAttribute()
public void setPrincipalIdAttribute(java.lang.String principalIdAttribute)
public boolean isAuthorizedToReleaseCredentialPassword()
RegisteredServiceAttributeReleasePolicy
isAuthorizedToReleaseCredentialPassword
in interface RegisteredServiceAttributeReleasePolicy
public boolean isAuthorizedToReleaseProxyGrantingTicket()
RegisteredServiceAttributeReleasePolicy
isAuthorizedToReleaseProxyGrantingTicket
in interface RegisteredServiceAttributeReleasePolicy
public void setAuthorizedToReleaseCredentialPassword(boolean authorizedToReleaseCredentialPassword)
public void setAuthorizedToReleaseProxyGrantingTicket(boolean authorizedToReleaseProxyGrantingTicket)
public boolean isExcludeDefaultAttributes()
public void setExcludeDefaultAttributes(boolean excludeDefaultAttributes)
public java.util.Map<java.lang.String,java.lang.Object> getAttributes(Principal principal, Service selectedService, RegisteredService registeredService)
RegisteredServiceAttributeReleasePolicy
getAttributes
in interface RegisteredServiceAttributeReleasePolicy
principal
- the principal that contains the resolved attributesselectedService
- the selected serviceregisteredService
- the serviceprotected void insertPrincipalIdAsAttributeIfNeeded(Principal principal, java.util.Map<java.lang.String,java.lang.Object> attributesToRelease, Service service, RegisteredService registeredService)
principal
- the principalattributesToRelease
- the attributes to releaseservice
- the serviceregisteredService
- the registered serviceprotected java.util.Map<java.lang.String,java.lang.Object> returnFinalAttributesCollection(java.util.Map<java.lang.String,java.lang.Object> attributesToRelease, RegisteredService service)
attributesToRelease
- the attributes to releaseservice
- the serviceprotected java.util.Map<java.lang.String,java.lang.Object> getReleasedByDefaultAttributes(Principal p, java.util.Map<java.lang.String,java.lang.Object> attributes)
p
- the principalattributes
- the attributesprotected abstract java.util.Map<java.lang.String,java.lang.Object> getAttributesInternal(Principal principal, java.util.Map<java.lang.String,java.lang.Object> attributes, RegisteredService service)
principal
- the principalattributes
- the principal attributesservice
- the servicepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object