public class ShibbolethSAML1AttributeAuthority extends BaseService implements SAML1AttributeAuthority
| コンストラクタと説明 | 
|---|
ShibbolethSAML1AttributeAuthority(ShibbolethAttributeResolver resolver)
This creates a new attribute authority. 
 | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
AttributeStatement | 
buildAttributeStatement(AttributeQuery query,
                       Collection<BaseAttribute> attributes)
Creates a SAML 1 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 SAML1 encoder. 
 | 
protected Set<String> | 
getAttribtueIds(EntityDescriptor metadata)
Gets the attribute IDs for those attributes requested in the entity metadata. 
 | 
String | 
getAttributeIDBySAMLAttribute(AttributeDesignator attribute)
Translates SAML 1 attribute naming information into the internal attribute ID used by the resolver and filtering
 engine. 
 | 
protected Set<String> | 
getAttributeIds(List<AttributeDesignator> attributes)
This parses the attribute ids from the supplied list of attributes. 
 | 
protected Set<String> | 
getAttributeIds(SAMLObject 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 SAMLObject,? extends ResponseAbstractType,NameIdentifier,? extends AbstractSAML1ProfileConfiguration> requestContext)
Gets the attributes for the principal identified in the request. 
 | 
ShibbolethAttributeFilteringEngine | 
getFilteringEngine()
Gets the filtering engine. 
 | 
String | 
getPrincipal(SAMLProfileRequestContext<? extends SAMLObject,? extends ResponseAbstractType,NameIdentifier,? extends AbstractSAML1ProfileConfiguration> requestContext)
Resolves a  
NameIdentifier into the internal principal name used by Shibboleth. | 
AttributeDesignator | 
getSAMLAttributeByAttributeID(String id)
Translates the internal attribute ID, used by the resolver and filtering engine, into its representative SAML 1
 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 ShibbolethSAML1AttributeAuthority(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 インタフェース内 SAML1AttributeAuthorityquery - 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(AttributeDesignator attribute)
getAttributeIDBySAMLAttribute インタフェース内 SAML1AttributeAuthorityattribute - the SAML 1 attribute to translatepublic String getPrincipal(SAMLProfileRequestContext<? extends SAMLObject,? extends ResponseAbstractType,NameIdentifier,? extends AbstractSAML1ProfileConfiguration> requestContext) throws AttributeRequestException
NameIdentifier into the internal principal name used by Shibboleth.getPrincipal インタフェース内 SAML1AttributeAuthorityrequestContext - The request context within which to retrieve the principal. At a minimum, a
            NameIdentifier and relying party ID must be included.NameIdentifier into the internal principal name used by ShibbolethAttributeRequestException - thrown if the principal get not be resolvedpublic AttributeDesignator getSAMLAttributeByAttributeID(String id)
getSAMLAttributeByAttributeID インタフェース内 SAML1AttributeAuthorityid - internal attribute IDpublic Map<String,BaseAttribute> getAttributes(SAMLProfileRequestContext<? extends SAMLObject,? extends ResponseAbstractType,NameIdentifier,? extends AbstractSAML1ProfileConfiguration> requestContext) throws AttributeRequestException
getAttributes インタフェース内 AttributeAuthority<SAMLProfileRequestContext<? extends SAMLObject,? extends ResponseAbstractType,NameIdentifier,? extends AbstractSAML1ProfileConfiguration>>requestContext - contextual information for the attribute requestAttributeRequestException - thrown if there is a problem retrieving the attributesprotected Set<String> getAttributeIds(SAMLObject samlRequest)
samlRequest - the attribute queryprotected Set<String> getAttribtueIds(EntityDescriptor metadata)
metadata - the entity metadataprotected Set<String> getAttributeIds(List<AttributeDesignator> attributes)
attributes - ListSet of attribute idsprotected Collection<Attribute> encodeAttributes(AttributeQuery query, Collection<BaseAttribute> attributes)
query - request that may containing filtering designatorsattributes - internal attributes to be encoded into SAML attributesprotected 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.