public class SAML2StringNameIDEncoder extends AbstractAttributeEncoder<NameID> implements SAML2NameIDEncoder
NameID of it. Attribute values
are turned into the values for the NameID by invoking the values Object.toString() method.| Modifier and Type | Field and Description |
|---|---|
private String |
nameFormat
Format of the NameID.
|
private SAMLObjectBuilder<NameID> |
nameIdBuilder
NameID builder object.
|
private String |
nameQualifier
Name qualifier for the NameID.
|
| Constructor and Description |
|---|
SAML2StringNameIDEncoder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAttributeName, setAttributeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributeName, setAttributeNameprivate SAMLObjectBuilder<NameID> nameIdBuilder
private String nameFormat
private String nameQualifier
public NameID encode(BaseAttribute attribute) throws AttributeEncodingException
encode in interface AttributeEncoder<NameID>attribute - the attribute to encodeAttributeEncodingException - if unable to successfully encode attributepublic String getNameFormat()
getNameFormat in interface SAMLNameIdentifierEncoder<NameID>public void setNameFormat(String format)
setNameFormat in interface SAMLNameIdentifierEncoder<NameID>format - name format URI for the NameIDpublic String getNameQualifier()
getNameQualifier in interface SAMLNameIdentifierEncoder<NameID>public void setNameQualifier(String qualifier)
setNameQualifier in interface SAMLNameIdentifierEncoder<NameID>qualifier - name domain qualifier for the NameIDCopyright © 1999-2015. All Rights Reserved.