|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.attribute.resolver.provider.AbstractResolutionPlugIn<BaseAttribute>
edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.BaseAttributeDefinition
edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.SAML2NameIDAttributeDefinition
public class SAML2NameIDAttributeDefinition
An attribute definition the creates attributes whose values are NameID
.
When building the NameID the textual content of the NameID is the value of the source attribute. If a
nameIdQualifier
is provided that value is used as the NameID's name qualifier otherwise the attribute
issuer's entity ID is used. The attribute requester's entity ID is always used as the NameID's SP name qualifier.
Constructor Summary | |
---|---|
SAML2NameIDAttributeDefinition()
Constructor. |
Method Summary | |
---|---|
protected org.opensaml.saml2.core.NameID |
buildNameId(String nameIdValue,
ShibbolethResolutionContext resolutionContext)
Builds a name ID. |
protected BaseAttribute<?> |
doResolve(ShibbolethResolutionContext resolutionContext)
Creates and populates the values for the resolved attribute. |
String |
getNameIdFormat()
Gets the format for the NameID used as an attribute value. |
String |
getNameIdQualifier()
Gets the NameQualifier for the NameID used as an attribute value. |
String |
getNameIdSPQualifier()
Gets the SPNameQualifier for the NameID used as an attribute value. |
void |
setNameIdFormat(String format)
Sets the format for the NameID used as an attribute value. |
void |
setNameIdQualifier(String qualifier)
Sets the NameQualifier for the NameID used as an attribute value. |
void |
setNameIdSPQualifier(String qualifier)
Sets the SPNameQualifier for the NameID used as an attribute value. |
void |
validate()
Validate the internal state of this plug-in. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.BaseAttributeDefinition |
---|
getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getSourceAttributeID, getValuesFromAllDependencies, isDependencyOnly, resolve, setDependencyOnly, setSourceAttributeID |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.AbstractResolutionPlugIn |
---|
getDependencyIds, getId, getValuesFromAllDependencies, getValuesFromAttributeDependency, getValuesFromConnectorDependency, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ResolutionPlugIn |
---|
getDependencyIds, getId |
Constructor Detail |
---|
public SAML2NameIDAttributeDefinition()
Method Detail |
---|
public String getNameIdFormat()
public void setNameIdFormat(String format)
format
- format for the NameID used as an attribute valuepublic String getNameIdQualifier()
public void setNameIdQualifier(String qualifier)
qualifier
- NameQualifier for the NameID used as an attribute valuepublic String getNameIdSPQualifier()
public void setNameIdSPQualifier(String qualifier)
qualifier
- SPNameQualifier for the NameID used as an attribute valueprotected BaseAttribute<?> doResolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
doResolve
in class BaseAttributeDefinition
resolutionContext
- current attribute resolution context
AttributeResolutionException
- thrown if there is a problem resolving and creating the attributeprotected org.opensaml.saml2.core.NameID buildNameId(String nameIdValue, ShibbolethResolutionContext resolutionContext)
nameIdValue
- value of the NameIDresolutionContext
- current resolution context
public void validate() throws AttributeResolutionException
AttributeResolutionException
- if the plug-in has an invalid internal state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |