org.jboss.security.xacml.factories
Class RequestAttributeFactory

java.lang.Object
  extended by org.jboss.security.xacml.factories.RequestAttributeFactory

public class RequestAttributeFactory
extends Object

Construct Commonly Used Attributes in Request Subject/Resource/Action and Environment sections

Since:
Jul 20, 2007
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Constructor Summary
RequestAttributeFactory()
           
 
Method Summary
static AttributeType createAnyURIAttributeType(String attrID, String issuer, URI value)
          Create an attribute that is of URI type
static AttributeType createBase64BinaryAttributeType(String attrID, String issuer, byte[] value)
          Create Base64 attribute
static AttributeType createBooleanAttributeType(String attrID, String issuer, boolean value)
          Create Boolean attribute
static AttributeType createDateAttributeType(String attrID, String issuer)
          Create Date attribute
static AttributeType createDateAttributeType(String attrID, String issuer, XMLGregorianCalendar value)
          Create Date attribute with the passed XMLGregorianCalendar
static AttributeType createDateTimeAttributeType(String attrID, String issuer)
          Create Date Time Attribute
static AttributeType createDateTimeAttributeType(String attrID, String issuer, XMLGregorianCalendar value)
          Create Date Time attribute with the passed XMLGregorianCalendar
static AttributeType createDayTimeDurationAttributeType(String attrID, String issuer, Duration value)
          Create DayTimeDuration attribute
static AttributeType createDNSNameAttributeType(String attrID, String issuer, String hostname)
          Create DNS Name Attribute
static AttributeType createDoubleAttributeType(String attrID, String issuer, double value)
          Create Double Attribute
static AttributeType createEmailAttributeType(String attrID, String issuer, String value)
          Create Email Attribute
static AttributeType createHexBinaryAttributeType(String attrID, String issuer, byte[] value)
          Create Hex Binary attribute
static AttributeType createIntegerAttributeType(String attrID, String issuer, int value)
          Create Integer Attribute
static AttributeType createIPAddressAttributeType(String attrID, String issuer, InetAddress address)
          Create IP Address attribute
static AttributeType createMultiValuedAttributeType(String attrID, String issuer, String dataType, String[] values)
          Create multi valued attribute
static AttributeType createStringAttributeType(String attrID, String issuer, String value)
          Create String attribute
static AttributeType createTimeAttributeType(String attrID, String issuer)
          Create Time attribute
static AttributeType createTimeAttributeType(String attrID, String issuer, XMLGregorianCalendar value)
          Create Time Attribute with the passed XMLGregorianCalendar
static AttributeType createX509NameAttributeType(String attrID, String issuer, X500Principal value)
          Create X509 attribute
static AttributeType createYearMonthDurationAttributeType(String attrID, String issuer, Duration value)
          Create year month duration attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestAttributeFactory

public RequestAttributeFactory()
Method Detail

createAnyURIAttributeType

public static AttributeType createAnyURIAttributeType(String attrID,
                                                      String issuer,
                                                      URI value)
Create an attribute that is of URI type

Parameters:
attrID -
issuer -
value -
Returns:

createBase64BinaryAttributeType

public static AttributeType createBase64BinaryAttributeType(String attrID,
                                                            String issuer,
                                                            byte[] value)
Create Base64 attribute

Parameters:
attrID -
issuer -
value -
Returns:

createBooleanAttributeType

public static AttributeType createBooleanAttributeType(String attrID,
                                                       String issuer,
                                                       boolean value)
Create Boolean attribute

Parameters:
attrID -
issuer -
value -
Returns:

createDateAttributeType

public static AttributeType createDateAttributeType(String attrID,
                                                    String issuer)
Create Date attribute

Parameters:
attrID -
issuer -
Returns:

createDateAttributeType

public static AttributeType createDateAttributeType(String attrID,
                                                    String issuer,
                                                    XMLGregorianCalendar value)
Create Date attribute with the passed XMLGregorianCalendar

Parameters:
attrID -
issuer -
value -
Returns:

createDateTimeAttributeType

public static AttributeType createDateTimeAttributeType(String attrID,
                                                        String issuer)
Create Date Time Attribute

Parameters:
attrID -
issuer -
Returns:

createDateTimeAttributeType

public static AttributeType createDateTimeAttributeType(String attrID,
                                                        String issuer,
                                                        XMLGregorianCalendar value)
Create Date Time attribute with the passed XMLGregorianCalendar

Parameters:
attrID -
issuer -
value -
Returns:

createDNSNameAttributeType

public static AttributeType createDNSNameAttributeType(String attrID,
                                                       String issuer,
                                                       String hostname)
Create DNS Name Attribute

Parameters:
attrID -
issuer -
hostname -
Returns:

createDoubleAttributeType

public static AttributeType createDoubleAttributeType(String attrID,
                                                      String issuer,
                                                      double value)
Create Double Attribute

Parameters:
attrID -
issuer -
value -
Returns:

createEmailAttributeType

public static AttributeType createEmailAttributeType(String attrID,
                                                     String issuer,
                                                     String value)
Create Email Attribute

Parameters:
attrID -
issuer -
value -
Returns:

createHexBinaryAttributeType

public static AttributeType createHexBinaryAttributeType(String attrID,
                                                         String issuer,
                                                         byte[] value)
Create Hex Binary attribute

Parameters:
attrID -
issuer -
value -
Returns:

createIntegerAttributeType

public static AttributeType createIntegerAttributeType(String attrID,
                                                       String issuer,
                                                       int value)
Create Integer Attribute

Parameters:
attrID -
issuer -
value -
Returns:

createIPAddressAttributeType

public static AttributeType createIPAddressAttributeType(String attrID,
                                                         String issuer,
                                                         InetAddress address)
Create IP Address attribute

Parameters:
attrID -
issuer -
address -
Returns:

createStringAttributeType

public static AttributeType createStringAttributeType(String attrID,
                                                      String issuer,
                                                      String value)
Create String attribute

Parameters:
attrID -
issuer -
value -
Returns:

createTimeAttributeType

public static AttributeType createTimeAttributeType(String attrID,
                                                    String issuer)
Create Time attribute

Parameters:
attrID -
issuer -
Returns:

createTimeAttributeType

public static AttributeType createTimeAttributeType(String attrID,
                                                    String issuer,
                                                    XMLGregorianCalendar value)
Create Time Attribute with the passed XMLGregorianCalendar

Parameters:
attrID -
issuer -
value -
Returns:

createX509NameAttributeType

public static AttributeType createX509NameAttributeType(String attrID,
                                                        String issuer,
                                                        X500Principal value)
Create X509 attribute

Parameters:
attrID -
issuer -
value -
Returns:

createDayTimeDurationAttributeType

public static AttributeType createDayTimeDurationAttributeType(String attrID,
                                                               String issuer,
                                                               Duration value)
Create DayTimeDuration attribute

Parameters:
attrID -
issuer -
value -
Returns:

createYearMonthDurationAttributeType

public static AttributeType createYearMonthDurationAttributeType(String attrID,
                                                                 String issuer,
                                                                 Duration value)
Create year month duration attribute

Parameters:
attrID -
issuer -
value -
Returns:

createMultiValuedAttributeType

public static AttributeType createMultiValuedAttributeType(String attrID,
                                                           String issuer,
                                                           String dataType,
                                                           String[] values)
Create multi valued attribute

Parameters:
attrID -
issuer -
dataType -
values -
Returns:


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.