edu.internet2.middleware.shibboleth.common.attribute.provider
Interface SAML1AttributeAuthority

All Superinterfaces:
AttributeAuthority<SAMLProfileRequestContext<? extends org.opensaml.common.SAMLObject,? extends org.opensaml.saml1.core.ResponseAbstractType,org.opensaml.saml1.core.NameIdentifier,? extends AbstractSAML1ProfileConfiguration>>
All Known Implementing Classes:
ShibbolethSAML1AttributeAuthority

public interface SAML1AttributeAuthority
extends AttributeAuthority<SAMLProfileRequestContext<? extends org.opensaml.common.SAMLObject,? extends org.opensaml.saml1.core.ResponseAbstractType,org.opensaml.saml1.core.NameIdentifier,? extends AbstractSAML1ProfileConfiguration>>

An attribute authority that can take an attribute query and produce a resultant attribute statement.


Method Summary
 org.opensaml.saml1.core.AttributeStatement buildAttributeStatement(org.opensaml.saml1.core.AttributeQuery query, Collection<BaseAttribute> attributes)
          Creates a SAML 1 attribute statment from a collection of BaseAttribute.
 String getAttributeIDBySAMLAttribute(org.opensaml.saml1.core.AttributeDesignator attribute)
          Translates SAML 1 attribute naming information into the internal attribute ID used by the resolver and filtering engine.
 String getPrincipal(SAMLProfileRequestContext<? extends org.opensaml.common.SAMLObject,? extends org.opensaml.saml1.core.ResponseAbstractType,org.opensaml.saml1.core.NameIdentifier,? extends AbstractSAML1ProfileConfiguration> requestContext)
          Resolves a NameIdentifier into the internal principal name used Shibboleth.
 org.opensaml.saml1.core.AttributeDesignator getSAMLAttributeByAttributeID(String id)
          Translates the internal attribute ID, used by the resolver and filtering engine, into its representative SAML 1 attribute name.
 
Methods inherited from interface edu.internet2.middleware.shibboleth.common.attribute.AttributeAuthority
getAttributes
 

Method Detail

getPrincipal

String getPrincipal(SAMLProfileRequestContext<? extends org.opensaml.common.SAMLObject,? extends org.opensaml.saml1.core.ResponseAbstractType,org.opensaml.saml1.core.NameIdentifier,? extends AbstractSAML1ProfileConfiguration> requestContext)
                    throws AttributeRequestException
Resolves a NameIdentifier into the internal principal name used Shibboleth.

Parameters:
requestContext - The request context within which to retrieve the principal. At a mimium, a NameIdentifier and relying party ID must be included.
Returns:
NameIdentifier into the internal principal name used Shibboleth
Throws:
AttributeRequestException - thrown if the principal get not be resolved

buildAttributeStatement

org.opensaml.saml1.core.AttributeStatement buildAttributeStatement(org.opensaml.saml1.core.AttributeQuery query,
                                                                   Collection<BaseAttribute> attributes)
                                                                   throws AttributeEncodingException
Creates a SAML 1 attribute statment from a collection of BaseAttribute.

Parameters:
query - the attribute query the statement is in respone to, may be null
attributes - the attributes to create the attribute statement form
Returns:
the generated attribute statement
Throws:
AttributeEncodingException - thrown if an BaseAttribute can not be encoded

getAttributeIDBySAMLAttribute

String getAttributeIDBySAMLAttribute(org.opensaml.saml1.core.AttributeDesignator attribute)
Translates SAML 1 attribute naming information into the internal attribute ID used by the resolver and filtering engine.

Parameters:
attribute - the SAML 1 attribute to translate
Returns:
the attribute ID used by the resolver and filtering engine

getSAMLAttributeByAttributeID

org.opensaml.saml1.core.AttributeDesignator getSAMLAttributeByAttributeID(String id)
Translates the internal attribute ID, used by the resolver and filtering engine, into its representative SAML 1 attribute name.

Parameters:
id - internal attribute ID
Returns:
SAML 1 attribute name


Copyright © 1999-2012. All Rights Reserved.