public class ShibbolethSAML2AttributeAuthority extends BaseService implements SAML2AttributeAuthority
| コンストラクタと説明 |
|---|
ShibbolethSAML2AttributeAuthority(ShibbolethAttributeResolver resolver)
This creates a new attribute authority.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
AttributeStatement |
buildAttributeStatement(AttributeQuery query,
Collection<BaseAttribute> attributes)
Creates a SAML 2 attribute statement from a collection of
BaseAttribute. |
protected Collection<Attribute> |
encodeAttributes(AttributeQuery query,
Collection<BaseAttribute> attributes)
This encodes the supplied attributes with that attribute's SAML2 encoder.
|
protected void |
filterAttributesByValue(AttributeQuery query,
Collection<Attribute> attributes)
Filters out all but the values, for an attribute, provided in the query, if and only if, the query specifies at
least one value for the attribute.
|
protected Set<String> |
getAttribtueIds(EntityDescriptor metadata)
Gets the attribute IDs for those attributes requested in the entity metadata.
|
String |
getAttributeIDBySAMLAttribute(Attribute attribute)
Translates SAML 2 attribute naming information into the internal attribute ID used by the resolver and filtering
engine.
|
protected Set<String> |
getAttributeIds(List<Attribute> attributes)
This parses the attribute ids from the supplied list of attributes.
|
protected Set<String> |
getAttributeIds(RequestAbstractType samlRequest)
Gets the attribute IDs for those attributes requested in the attribute query.
|
ShibbolethAttributeResolver |
getAttributeResolver()
Gets the attribute resolver.
|
Map<String,BaseAttribute> |
getAttributes(SAMLProfileRequestContext<? extends RequestAbstractType,? extends StatusResponseType,NameID,? extends AbstractSAML2ProfileConfiguration> requestContext)
Gets the attributes for the principal identified in the request.
|
ShibbolethAttributeFilteringEngine |
getFilteringEngine()
Gets the filtering engine.
|
String |
getPrincipal(SAMLProfileRequestContext<? extends RequestAbstractType,? extends StatusResponseType,NameID,? extends AbstractSAML2ProfileConfiguration> requestContext)
Resolves a
NameID into the internal principal name used by Shibboleth. |
Attribute |
getSAMLAttributeByAttributeID(String id)
Translates the internal attribute ID, used by the resolver and filtering engine, into its representative SAML 2
attribute name.
|
protected void |
onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext)
Called after a new context has been created but before it set as the service's context.
|
void |
setFilteringEngine(ShibbolethAttributeFilteringEngine engine)
Sets the attribute filtering engine.
|
destroy, getApplicationContext, getId, getReadWriteLock, getServiceConfigurations, getServiceContext, initialize, isDestroyed, isInitialized, loadContext, setApplicationContext, setBeanName, setInitialized, setServiceConfigurations, setServiceContextpublic ShibbolethSAML2AttributeAuthority(ShibbolethAttributeResolver resolver)
resolver - The attribute resolver to setpublic ShibbolethAttributeResolver getAttributeResolver()
public ShibbolethAttributeFilteringEngine getFilteringEngine()
public void setFilteringEngine(ShibbolethAttributeFilteringEngine engine)
engine - attribute filtering enginepublic AttributeStatement buildAttributeStatement(AttributeQuery query, Collection<BaseAttribute> attributes) throws AttributeEncodingException
BaseAttribute.buildAttributeStatement インタフェース内 SAML2AttributeAuthorityquery - the attribute query the statement is in response to, may be nullattributes - the attributes to create the attribute statement formAttributeEncodingException - thrown if an BaseAttribute can not be encodedpublic String getAttributeIDBySAMLAttribute(Attribute attribute)
getAttributeIDBySAMLAttribute インタフェース内 SAML2AttributeAuthorityattribute - the SAML 2 attribute to translatepublic Attribute getSAMLAttributeByAttributeID(String id)
getSAMLAttributeByAttributeID インタフェース内 SAML2AttributeAuthorityid - internal attribute IDpublic String getPrincipal(SAMLProfileRequestContext<? extends RequestAbstractType,? extends StatusResponseType,NameID,? extends AbstractSAML2ProfileConfiguration> requestContext) throws AttributeRequestException
NameID into the internal principal name used by Shibboleth.getPrincipal インタフェース内 SAML2AttributeAuthorityrequestContext - The request context within which to retrieve the principal. At a minimum, a NameID
and relying party ID must be included.NameID into the internal principal name used by ShibbolethAttributeRequestException - thrown if the principal could not be resolvedpublic Map<String,BaseAttribute> getAttributes(SAMLProfileRequestContext<? extends RequestAbstractType,? extends StatusResponseType,NameID,? extends AbstractSAML2ProfileConfiguration> requestContext) throws AttributeRequestException
getAttributes インタフェース内 AttributeAuthority<SAMLProfileRequestContext<? extends RequestAbstractType,? extends StatusResponseType,NameID,? extends AbstractSAML2ProfileConfiguration>>requestContext - contextual information for the attribute requestAttributeRequestException - thrown if there is a problem retrieving the attributesprotected Collection<Attribute> encodeAttributes(AttributeQuery query, Collection<BaseAttribute> attributes) throws AttributeEncodingException
query - request that may containing filtering designatorsattributes - the attributes to encodeAttributeEncodingException - thrown if an attribute could not be encodedprotected void filterAttributesByValue(AttributeQuery query, Collection<Attribute> attributes)
query - the attribute queryattributes - the attributes to filterprotected Set<String> getAttributeIds(RequestAbstractType samlRequest)
samlRequest - incomming SAML requestprotected Set<String> getAttribtueIds(EntityDescriptor metadata)
metadata - the entity metadataprotected Set<String> getAttributeIds(List<Attribute> attributes)
attributes - ListSet of attribute idsprotected void onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext)
throws ServiceException
onNewContextCreated クラス内 BaseServicenewServiceContext - the newly created context for the serviceServiceException - thrown if there is a problem with the given service contextCopyright © 2012. All Rights Reserved.