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

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractAttributeEncoder<org.opensaml.saml1.core.Attribute>
      extended by edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractSAML1AttributeEncoder
All Implemented Interfaces:
AttributeEncoder<org.opensaml.saml1.core.Attribute>, SAML1AttributeEncoder, XMLObjectAttributeEncoder<org.opensaml.saml1.core.Attribute>
Direct Known Subclasses:
SAML1Base64AttributeEncoder, SAML1StringAttributeEncoder, SAML1XMLObjectAttributeEncoder

public abstract class AbstractSAML1AttributeEncoder
extends AbstractAttributeEncoder<org.opensaml.saml1.core.Attribute>
implements SAML1AttributeEncoder

Base for encoders that produce Attributes.


Field Summary
protected  org.opensaml.common.SAMLObjectBuilder<org.opensaml.saml1.core.Attribute> attributeBuilder
          Attribute factory.
 
Constructor Summary
protected AbstractSAML1AttributeEncoder()
          Constructor.
 
Method Summary
 String getNamespace()
          Gets the attribute namespace.
protected  void populateAttribute(org.opensaml.saml1.core.Attribute attribute)
          Populates the attribute with attribute name and namespace.
 void setNamespace(String newNamespace)
          Sets the attribute namespace.
 
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
encode, getAttributeName, setAttributeName
 

Field Detail

attributeBuilder

protected final org.opensaml.common.SAMLObjectBuilder<org.opensaml.saml1.core.Attribute> attributeBuilder
Attribute factory.

Constructor Detail

AbstractSAML1AttributeEncoder

protected AbstractSAML1AttributeEncoder()
Constructor.

Method Detail

getNamespace

public String getNamespace()
Gets the attribute namespace.

Specified by:
getNamespace in interface SAML1AttributeEncoder
Returns:
attribute namespace

setNamespace

public void setNamespace(String newNamespace)
Sets the attribute namespace.

Specified by:
setNamespace in interface SAML1AttributeEncoder
Parameters:
newNamespace - attribute namespace

populateAttribute

protected void populateAttribute(org.opensaml.saml1.core.Attribute attribute)
Populates the attribute with attribute name and namespace.

Parameters:
attribute - to populate


Copyright © 2006-2010 Internet2. All Rights Reserved.