IBM WebSphere Application ServerTM
Release 7

com.ibm.wsspi.wssecurity.saml.data
Class SAMLAttribute

java.lang.Object
  extended by com.ibm.wsspi.wssecurity.saml.data.SAMLAttribute
All Implemented Interfaces:
java.io.Serializable

public class SAMLAttribute
extends java.lang.Object
implements java.io.Serializable

This is class represents a SAML user attribute that can be contained in a SAML Assertion.

See Also:
Serialized Form

Constructor Summary
SAMLAttribute(SAMLAttribute anAttribute)
          Class constructor.
SAMLAttribute(java.lang.String name, java.lang.String[] stringAttributeValue, com.ibm.websphere.wssecurity.wssapi.XMLStructure[] xmlAttributeValue, java.lang.String attributeNamespace, java.lang.String nameFormat, java.lang.String friendlyName)
          Class constructor
 
Method Summary
 java.lang.String getAttributeNamespace()
          This method returns the attribute's namespace.
 java.lang.String getFriendlyName()
          This method returns the friendly name of the SAML Attribute.
 java.lang.String getName()
          This method returns the name of the attribute.
 java.lang.String getNameFormat()
          This method returns the attribute attribute's format that specifies how the attribute will be interpreted.
 java.lang.String[] getStringAttributeValue()
          This method returns an array of this SAML attribute's values in string representation.
 com.ibm.websphere.wssecurity.wssapi.XMLStructure[] getXMLAttributeValue()
          This method returns tan array of this SAML attribute's values in XML form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLAttribute

public SAMLAttribute(java.lang.String name,
                     java.lang.String[] stringAttributeValue,
                     com.ibm.websphere.wssecurity.wssapi.XMLStructure[] xmlAttributeValue,
                     java.lang.String attributeNamespace,
                     java.lang.String nameFormat,
                     java.lang.String friendlyName)
Class constructor

Parameters:
String - name - name of the SAML Attribute
String[] - stringAttributeValue - String array containing attribute values in string form.
XMLStructure[] - xmlAttributeValue - XMLStructure array containing attribute values in XML form.
String - attributeNamespace - attribute's namespaces
String - nameFormat - attribute's format that specifies how the attribute will be interpreted. For example, "urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
String - friendlyName - a friendly name for the attribute, in case the attribute's name is cryptic.

SAMLAttribute

public SAMLAttribute(SAMLAttribute anAttribute)
Class constructor. Copies values from another attribute.

Parameters:
SAMLAttribute - anAttribute
Method Detail

getName

public java.lang.String getName()
This method returns the name of the attribute.

Returns:
SAML attribute's name String

getNameFormat

public java.lang.String getNameFormat()
This method returns the attribute attribute's format that specifies how the attribute will be interpreted.

Returns:
SAML attribute's format String

getAttributeNamespace

public java.lang.String getAttributeNamespace()
This method returns the attribute's namespace.

Returns:
SAML attribute's namespace String

getStringAttributeValue

public java.lang.String[] getStringAttributeValue()
This method returns an array of this SAML attribute's values in string representation.

Returns:
SAML attribute's string value String[]

getXMLAttributeValue

public com.ibm.websphere.wssecurity.wssapi.XMLStructure[] getXMLAttributeValue()
This method returns tan array of this SAML attribute's values in XML form.

Returns:
SAML attribute's XML value XMLStructure[]

getFriendlyName

public java.lang.String getFriendlyName()
This method returns the friendly name of the SAML Attribute.

Returns:
SAML attribute's friendly name String

IBM WebSphere Application ServerTM
Release 7