public class SAML2ScopedStringAttributeEncoder extends AbstractScopedAttributeEncoder<Attribute> implements SAML2AttributeEncoder
Modifier and Type | Field and Description |
---|---|
private SAMLObjectBuilder<Attribute> |
attributeBuilder
Builder for SAML 2 attribute XMLObjects.
|
private String |
format
Format of attribute.
|
private String |
friendlyName
Friendly name of attribute.
|
private org.slf4j.Logger |
log
Class logger.
|
Constructor and Description |
---|
SAML2ScopedStringAttributeEncoder()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Attribute |
encode(BaseAttribute attribute)
Enocdes the attribute into a protocol specific representations.
|
String |
getFriendlyName()
Gets the human friendly name of the attribute.
|
String |
getNameFormat()
Gets the attribute's name format.
|
void |
setFriendlyName(String name)
Sets the human friendly name of the attribute.
|
void |
setNameFormat(String newFormat)
Sets the attribute's name format.
|
encodeAttributeValues, getScopeAttribute, getScopeDelimiter, getScopeType, setScopeAttribute, setScopeDelimiter, setScopeType
getAttributeName, setAttributeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributeName, setAttributeName
private final org.slf4j.Logger log
private final SAMLObjectBuilder<Attribute> attributeBuilder
private String format
private String friendlyName
public SAML2ScopedStringAttributeEncoder()
public String getNameFormat()
getNameFormat
in interface SAML2AttributeEncoder
public String getFriendlyName()
getFriendlyName
in interface SAML2AttributeEncoder
public void setNameFormat(String newFormat)
setNameFormat
in interface SAML2AttributeEncoder
newFormat
- attribute's name formatpublic void setFriendlyName(String name)
setFriendlyName
in interface SAML2AttributeEncoder
name
- human friendly name of the attributepublic Attribute encode(BaseAttribute attribute) throws AttributeEncodingException
encode
in interface AttributeEncoder<Attribute>
attribute
- the attribute to encodeAttributeEncodingException
- if unable to successfully encode attributeCopyright © 1999-2012. All Rights Reserved.