org.apache.rahas.impl.util
Class SAMLAttributeCallback

java.lang.Object
  extended by org.apache.rahas.impl.util.SAMLAttributeCallback
All Implemented Interfaces:
SAMLCallback

public class SAMLAttributeCallback
extends java.lang.Object
implements SAMLCallback


Field Summary
 
Fields inherited from interface org.apache.rahas.impl.util.SAMLCallback
ATTR_CALLBACK, NAME_IDENTIFIER_CALLBACK
 
Constructor Summary
SAMLAttributeCallback(RahasData data)
           
 
Method Summary
 void addAttributes(org.opensaml.saml1.core.Attribute attribute)
          Add SAML1 attribute.
 void addAttributes(org.opensaml.saml2.core.Attribute attribute)
          Overloaded method to support SAML2
 org.opensaml.saml1.core.Attribute[] getAttributes()
          Get SAML2 attribute
 int getCallbackType()
          Returns the type of callback
 RahasData getData()
           
 org.opensaml.saml2.core.Attribute[] getSAML2Attributes()
          Get the array of SAML2 attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLAttributeCallback

public SAMLAttributeCallback(RahasData data)
Method Detail

getCallbackType

public int getCallbackType()
Description copied from interface: SAMLCallback
Returns the type of callback

Specified by:
getCallbackType in interface SAMLCallback
Returns:

addAttributes

public void addAttributes(org.opensaml.saml1.core.Attribute attribute)
Add SAML1 attribute.

Parameters:
attribute - SAML1 attribute

addAttributes

public void addAttributes(org.opensaml.saml2.core.Attribute attribute)
Overloaded method to support SAML2

Parameters:
attribute - SAML2 attribute.

getSAML2Attributes

public org.opensaml.saml2.core.Attribute[] getSAML2Attributes()
Get the array of SAML2 attributes.

Returns:
SAML2 attribute list.

getAttributes

public org.opensaml.saml1.core.Attribute[] getAttributes()
Get SAML2 attribute

Returns:
SAML2 attributes.

getData

public RahasData getData()