edu.internet2.middleware.shibboleth.common.attribute.encoding.provider
Class AbstractScopedAttributeEncoder<EncodedType>

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractAttributeEncoder<EncodedType>
      extended by edu.internet2.middleware.shibboleth.common.attribute.encoding.provider.AbstractScopedAttributeEncoder<EncodedType>
Type Parameters:
EncodedType - the type of object created by encoding the attribute
All Implemented Interfaces:
AttributeEncoder<EncodedType>
Direct Known Subclasses:
SAML1ScopedStringAttributeEncoder, SAML2ScopedStringAttributeEncoder

public abstract class AbstractScopedAttributeEncoder<EncodedType>
extends AbstractAttributeEncoder<EncodedType>

Base class for scoped attribute encoders.


Constructor Summary
AbstractScopedAttributeEncoder()
           
 
Method Summary
protected  List<org.opensaml.xml.XMLObject> encodeAttributeValues(QName objectName, BaseAttribute<ScopedAttributeValue> attribute)
          Encodes attributes whose values are scoped.
 String getScopeAttribute()
          Get the scope attribute.
 String getScopeDelimiter()
          Get the scope delimiter.
 String getScopeType()
          Get the scope type.
 void setScopeAttribute(String newScopeAttribute)
          Set the scope attribute.
 void setScopeDelimiter(String newScopeDelimiter)
          Set the scope delimiter.
 void setScopeType(String newScopeType)
          Set the scope type.
 
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
 

Constructor Detail

AbstractScopedAttributeEncoder

public AbstractScopedAttributeEncoder()
Method Detail

getScopeAttribute

public String getScopeAttribute()
Get the scope attribute.

Returns:
Returns the scopeAttribute.

getScopeDelimiter

public String getScopeDelimiter()
Get the scope delimiter.

Returns:
Returns the scopeDelimiter.

getScopeType

public String getScopeType()
Get the scope type.

Returns:
Returns the scopeType.

setScopeAttribute

public void setScopeAttribute(String newScopeAttribute)
Set the scope attribute.

Parameters:
newScopeAttribute - The scopeAttribute to set.

setScopeDelimiter

public void setScopeDelimiter(String newScopeDelimiter)
Set the scope delimiter.

Parameters:
newScopeDelimiter - The scopeDelimiter to set.

setScopeType

public void setScopeType(String newScopeType)
Set the scope type.

Parameters:
newScopeType - The scopeType to set.

encodeAttributeValues

protected List<org.opensaml.xml.XMLObject> encodeAttributeValues(QName objectName,
                                                                 BaseAttribute<ScopedAttributeValue> attribute)
Encodes attributes whose values are scoped.

Parameters:
objectName - name of the attribute value element to create for each value
attribute - the attribute whose values will be encoded
Returns:
the list of encoded attribute values


Copyright © 2006-2010 Internet2. All Rights Reserved.