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

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractAttributeEncoder<org.opensaml.saml2.core.Attribute>
      extended by edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractSAML2AttributeEncoder
          extended by edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.SAML2XMLObjectAttributeEncoder
All Implemented Interfaces:
AttributeEncoder<org.opensaml.saml2.core.Attribute>, SAML2AttributeEncoder, XMLObjectAttributeEncoder<org.opensaml.saml2.core.Attribute>

public class SAML2XMLObjectAttributeEncoder
extends AbstractSAML2AttributeEncoder

A SAML 2 encoder that uses XMLObject as the value for attribute values.


Field Summary
 
Fields inherited from class edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractSAML2AttributeEncoder
attributeBuilder
 
Constructor Summary
SAML2XMLObjectAttributeEncoder()
          Constructor.
 
Method Summary
 org.opensaml.saml2.core.Attribute encode(BaseAttribute attribute)
          Enocdes the attribute into a protocol specific representations.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractSAML2AttributeEncoder
getFriendlyName, getNameFormat, populateAttribute, setFriendlyName, setNameFormat
 
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

SAML2XMLObjectAttributeEncoder

public SAML2XMLObjectAttributeEncoder()
Constructor.

Method Detail

encode

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

Parameters:
attribute - the attribute to encode
Returns:
the Object the attribute was encoded into
Throws:
AttributeEncodingException - if unable to successfully encode attribute


Copyright © 2006-2008 Internet2. All Rights Reserved.