JBoss Security SPI - Aggregator 2.0.4.SP8

org.jboss.security.identity
Class AttributeFactory

java.lang.Object
  extended by org.jboss.security.identity.AttributeFactory

public class AttributeFactory
extends Object

Creates Attributes

Author:
Anil.Saldhana@redhat.com

Constructor Summary
AttributeFactory()
           
 
Method Summary
static
<T> Attribute<T>
createAttribute(String name, T value)
          Create an attribute
static Attribute<String> createEmailAddress(String emailAddress)
          Create an email attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeFactory

public AttributeFactory()
Method Detail

createAttribute

public static <T> Attribute<T> createAttribute(String name,
                                               T value)
Create an attribute

Type Parameters:
T -
Parameters:
name -
value -
Returns:

createEmailAddress

public static Attribute<String> createEmailAddress(String emailAddress)
Create an email attribute

Parameters:
emailAddress -
Returns:

JBoss Security SPI - Aggregator 2.0.4.SP8

Copyright © 2012 JBoss Inc.. All Rights Reserved.