public interface SAML2AttributeAuthority extends AttributeAuthority<SAMLProfileRequestContext<? extends org.opensaml.saml2.core.RequestAbstractType,? extends org.opensaml.saml2.core.StatusResponseType,org.opensaml.saml2.core.NameID,? extends AbstractSAML2ProfileConfiguration>>
Modifier and Type | Method and Description |
---|---|
org.opensaml.saml2.core.AttributeStatement |
buildAttributeStatement(org.opensaml.saml2.core.AttributeQuery query,
Collection<BaseAttribute> attributes)
Creates a SAML 2 attribute statement from a collection of
BaseAttribute . |
String |
getAttributeIDBySAMLAttribute(org.opensaml.saml2.core.Attribute attribute)
Translates SAML 2 attribute naming information into the internal attribute ID used by the resolver and filtering
engine.
|
String |
getPrincipal(SAMLProfileRequestContext<? extends org.opensaml.saml2.core.RequestAbstractType,? extends org.opensaml.saml2.core.StatusResponseType,org.opensaml.saml2.core.NameID,? extends AbstractSAML2ProfileConfiguration> requestContext)
Resolves a
NameID into the internal principal name used by Shibboleth. |
org.opensaml.saml2.core.Attribute |
getSAMLAttributeByAttributeID(String id)
Translates the internal attribute ID, used by the resolver and filtering engine, into its representative SAML 2
attribute name.
|
getAttributes
String getPrincipal(SAMLProfileRequestContext<? extends org.opensaml.saml2.core.RequestAbstractType,? extends org.opensaml.saml2.core.StatusResponseType,org.opensaml.saml2.core.NameID,? extends AbstractSAML2ProfileConfiguration> requestContext) throws AttributeRequestException
NameID
into the internal principal name used by Shibboleth.requestContext
- 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 resolvedorg.opensaml.saml2.core.AttributeStatement buildAttributeStatement(org.opensaml.saml2.core.AttributeQuery query, Collection<BaseAttribute> attributes) throws AttributeEncodingException
BaseAttribute
.query
- 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 encodedString getAttributeIDBySAMLAttribute(org.opensaml.saml2.core.Attribute attribute)
attribute
- the SAML 2 attribute to translateorg.opensaml.saml2.core.Attribute getSAMLAttributeByAttributeID(String id)
id
- internal attribute IDCopyright © 1999–2014. All rights reserved.