|
||||||||||
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<EncodedType>
edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractScopedAttributeEncoder<org.opensaml.saml2.core.Attribute>
edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.SAML2ScopedStringAttributeEncoder
public class SAML2ScopedStringAttributeEncoder
Implementation of SAML 2.0 scoped attribute encoder.
Field Summary | |
---|---|
private org.opensaml.common.SAMLObjectBuilder<org.opensaml.saml2.core.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 Summary | |
---|---|
SAML2ScopedStringAttributeEncoder()
Constructor. |
Method Summary | |
---|---|
org.opensaml.saml2.core.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. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractScopedAttributeEncoder |
---|
encodeAttributeValues, getScopeAttribute, getScopeDelimiter, getScopeType, setScopeAttribute, setScopeDelimiter, setScopeType |
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 final org.slf4j.Logger log
private final org.opensaml.common.SAMLObjectBuilder<org.opensaml.saml2.core.Attribute> attributeBuilder
private String format
private String friendlyName
Constructor Detail |
---|
public SAML2ScopedStringAttributeEncoder()
Method Detail |
---|
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 org.opensaml.saml2.core.Attribute encode(BaseAttribute attribute) throws AttributeEncodingException
encode
in interface AttributeEncoder<org.opensaml.saml2.core.Attribute>
attribute
- the attribute to encode
AttributeEncodingException
- if unable to successfully encode attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |