edu.internet2.middleware.shibboleth.common.attribute.encoding.provider
Class SAML1StringNameIdentifierEncoder

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractAttributeEncoder<org.opensaml.saml1.core.NameIdentifier>
      extended by edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.SAML1StringNameIdentifierEncoder
All Implemented Interfaces:
AttributeEncoder<org.opensaml.saml1.core.NameIdentifier>, SAML1NameIdentifierEncoder, XMLObjectAttributeEncoder<org.opensaml.saml1.core.NameIdentifier>

public class SAML1StringNameIdentifierEncoder
extends AbstractAttributeEncoder<org.opensaml.saml1.core.NameIdentifier>
implements SAML1NameIdentifierEncoder

An attribute encoder that takes the first value of an attribute and creates a NameIdentifier of it. Attribute values are turned into the values for the NameIdentifier by invoking the values Object.toString() method.


Constructor Summary
SAML1StringNameIdentifierEncoder()
          Constructor.
 
Method Summary
 org.opensaml.saml1.core.NameIdentifier encode(BaseAttribute attribute)
          Enocdes the attribute into a protocol specific representations.
 String getNameFormat()
          Gets the name format URI for the NameIdentifier.
 String getNameQualifier()
          Gets the name qualifier for the NameIdentifier.
 void setNameFormat(String format)
          Sets the name format URI for the NameID.
 void setNameQualifier(String qualifier)
          Sets the name qualifier for the NameIdentifier.
 
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
 

Constructor Detail

SAML1StringNameIdentifierEncoder

public SAML1StringNameIdentifierEncoder()
Constructor.

Method Detail

getNameFormat

public String getNameFormat()
Gets the name format URI for the NameIdentifier.

Specified by:
getNameFormat in interface SAML1NameIdentifierEncoder
Returns:
name format URI for the NameIdentifier

setNameFormat

public void setNameFormat(String format)
Sets the name format URI for the NameID.

Specified by:
setNameFormat in interface SAML1NameIdentifierEncoder
Parameters:
format - name format URI for the NameID

getNameQualifier

public String getNameQualifier()
Gets the name qualifier for the NameIdentifier.

Specified by:
getNameQualifier in interface SAML1NameIdentifierEncoder
Returns:
name qualifier for the NameIdentifier

setNameQualifier

public void setNameQualifier(String qualifier)
Sets the name qualifier for the NameIdentifier.

Specified by:
setNameQualifier in interface SAML1NameIdentifierEncoder
Parameters:
qualifier - name qualifier for the NameIdentifier

encode

public org.opensaml.saml1.core.NameIdentifier encode(BaseAttribute attribute)
                                              throws AttributeEncodingException
Enocdes the attribute into a protocol specific representations.

Specified by:
encode in interface AttributeEncoder<org.opensaml.saml1.core.NameIdentifier>
Parameters:
attribute - the attribute to encode
Returns:
the Object the attribute was encoded into
Throws:
AttributeEncodingException - if unable to successfully encode attribute


Copyright © 2006-2009 Internet2. All Rights Reserved.