|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractAttributeEncoder<org.opensaml.saml2.core.NameID>
edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.SAML2StringNameIDEncoder
public class SAML2StringNameIDEncoder
An attribute encoder that takes the first value of an attribute and creates a NameID
of it. Attribute values
are turned into the values for the NameID by invoking the values Object.toString()
method.
Field Summary | |
---|---|
private String |
nameFormat
Format of the NameID. |
private org.opensaml.common.SAMLObjectBuilder<org.opensaml.saml2.core.NameID> |
nameIdBuilder
NameID builder object. |
private String |
nameQualifier
Name qualifier for the NameID. |
Constructor Summary | |
---|---|
SAML2StringNameIDEncoder()
Constructor. |
Method Summary | |
---|---|
org.opensaml.saml2.core.NameID |
encode(BaseAttribute attribute)
Enocdes the attribute into a protocol specific representations. |
String |
getNameFormat()
Gets the name format URI for the NameID. |
String |
getNameQualifier()
Gets the name domain qualifier for the NameID. |
void |
setNameFormat(String format)
Sets the name format URI for the NameID. |
void |
setNameQualifier(String qualifier)
Sets the name domain qualifier for the NameID. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractAttributeEncoder |
---|
getAttributeName, setAttributeName |
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.encoding.AttributeEncoder |
---|
getAttributeName, setAttributeName |
Field Detail |
---|
private org.opensaml.common.SAMLObjectBuilder<org.opensaml.saml2.core.NameID> nameIdBuilder
private String nameFormat
private String nameQualifier
Constructor Detail |
---|
public SAML2StringNameIDEncoder()
Method Detail |
---|
public org.opensaml.saml2.core.NameID encode(BaseAttribute attribute) throws AttributeEncodingException
encode
in interface AttributeEncoder<org.opensaml.saml2.core.NameID>
attribute
- the attribute to encode
AttributeEncodingException
- if unable to successfully encode attributepublic String getNameFormat()
getNameFormat
in interface SAMLNameIdentifierEncoder<org.opensaml.saml2.core.NameID>
public void setNameFormat(String format)
setNameFormat
in interface SAMLNameIdentifierEncoder<org.opensaml.saml2.core.NameID>
format
- name format URI for the NameIDpublic String getNameQualifier()
getNameQualifier
in interface SAMLNameIdentifierEncoder<org.opensaml.saml2.core.NameID>
public void setNameQualifier(String qualifier)
setNameQualifier
in interface SAMLNameIdentifierEncoder<org.opensaml.saml2.core.NameID>
qualifier
- name domain qualifier for the NameID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |