Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06

weblogic.security.providers.saml
Class SAMLAttributeInfo

java.lang.Object
  extended by weblogic.security.providers.saml.SAMLAttributeInfo

public class SAMLAttributeInfo
extends Object

A class that represents a single attribute of a SAMLAssertion AttributeStatement.


Constructor Summary
SAMLAttributeInfo()
          Constructs a SAMLAttributeInfo with all null fields.
SAMLAttributeInfo(String name, String namespace, Collection<String> values)
          Constructs a SAMLAttributeInfo representing a SAML Attribute.
SAMLAttributeInfo(String name, String namespace, String value)
          Constructs a SAMLAttributeInfo instance representing a SAML Attribute fields.
 
Method Summary
 void addAttributeValue(String value)
          Adds a String value to the end of this instance's values.
 String getAttributeName()
          return name of a SAML Attribute
 String getAttributeNamespace()
          return namespace of a SAML Attribute
 Collection<String> getAttributeValues()
          Return attribute values, it's a Collection of String and in the order they were added.
 void setAttributeName(String name, String namespace)
          Set the name and namespace of this SAMLAttributeInfo instance.
 void setAttributeValues(Collection<String> values)
          Set attribute's values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLAttributeInfo

public SAMLAttributeInfo()
Constructs a SAMLAttributeInfo with all null fields.


SAMLAttributeInfo

public SAMLAttributeInfo(String name,
                         String namespace,
                         Collection<String> values)
Constructs a SAMLAttributeInfo representing a SAML Attribute. If name or namespace is null, returns an instance with all null fields. An empty Collection adds no values to this instance. Collection elements that are null are added as empty strings.

Parameters:
name - Attribute name of a SAML Attribute
namespace - NameSpace of a SAML Attribute
values - values of a SAML Attribute, it's a collection of String

SAMLAttributeInfo

public SAMLAttributeInfo(String name,
                         String namespace,
                         String value)
Constructs a SAMLAttributeInfo instance representing a SAML Attribute fields. If name or namespace is null, returns an instance with all null fields. A null value is added as an empty String.

Parameters:
name - Attribute name of a SAML Attribute
namespace - NameSpace of a SAML Attribute
value - values of a SAML Attribute, it's a String
Method Detail

getAttributeName

public String getAttributeName()
return name of a SAML Attribute

Returns:
name of a SAML Attribute

getAttributeNamespace

public String getAttributeNamespace()
return namespace of a SAML Attribute

Returns:
namespace of a SAML Attribute

setAttributeName

public void setAttributeName(String name,
                             String namespace)
Set the name and namespace of this SAMLAttributeInfo instance. If name or namespace is null, returns without updating the instance.

Parameters:
name - attribute name
namespace - attribute namespace

setAttributeValues

public void setAttributeValues(Collection<String> values)
Set attribute's values. An empty Collection adds no values to this instance. Collection elements that are null are added as empty strings.

Parameters:
values - attribute values

addAttributeValue

public void addAttributeValue(String value)
Adds a String value to the end of this instance's values. A null value is added as an empty String.

Parameters:
value - attribute value to be added

getAttributeValues

public Collection<String> getAttributeValues()
Return attribute values, it's a Collection of String and in the order they were added.

Returns:
attribute values

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06