org.glite.authz.common.model
Class Attribute

java.lang.Object
  extended by org.glite.authz.common.model.Attribute
All Implemented Interfaces:
java.io.Serializable

public final class Attribute
extends java.lang.Object
implements java.io.Serializable

An attribute that identifies either a Subject, Resource, Environment or Action. If no data type is given for an attribute the data type defaults to "http://www.w3.org/2001/XMLSchema#string".

See Also:
Serialized Form

Field Summary
static java.lang.String DT_ANY_URI
          The any URI data type URI, "http://www.w3.org/2001/XMLSchema#anyURI" .
static java.lang.String DT_BASE64_BINARY
          The base64-encoded binary data type URI, "http://www.w3.org/2001/XMLSchema#base64Binary" .
static java.lang.String DT_BOOLEAN
          The boolean data type URI, "http://www.w3.org/2001/XMLSchema#boolean" .
static java.lang.String DT_DATE
          The date data type URI, "http://www.w3.org/2001/XMLSchema#date" .
static java.lang.String DT_DATE_TIME
          The date/time data type URI, "http://www.w3.org/2001/XMLSchema#dateTime" .
static java.lang.String DT_DAY_TIME
          The XQuery dayTimeDuration data type URI, "http://www.w3.org/TR/2002/WD-xquery-operators-20020816#dayTimeDuration" .
static java.lang.String DT_DOUBLE
          The double data type URI, "http://www.w3.org/2001/XMLSchema#double" .
static java.lang.String DT_HEX_BINARY
          The hex-encoded binary data type URI, "http://www.w3.org/2001/XMLSchema#hexBinary" .
static java.lang.String DT_INTEGER
          The integer data type URI, "http://www.w3.org/2001/XMLSchema#integer" .
static java.lang.String DT_RFC822_NAME
          The RFC822 name (email address) data type URI, "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name" .
static java.lang.String DT_STRING
          The string data type URI, "http://www.w3.org/2001/XMLSchema#string" .
static java.lang.String DT_TIME
          The time data type URI, "http://www.w3.org/2001/XMLSchema#time" .
static java.lang.String DT_X500_NAME
          The X.500 name (DN) data type URI, "urn:oasis:names:tc:xacml:1.0:data-type:x500Name" .
static java.lang.String DT_YEAR_MONTH
          The XQuery yearMonthDuration data type URI, "http://www.w3.org/TR/2002/WD-xquery-operators-20020816#yearMonthDuration" .
static java.lang.String ID_ACT_ID
          The action ID attribute ID, "urn:oasis:names:tc:xacml:1.0:action:action-id" .
static java.lang.String ID_ACT_IMPLIED_ACTION
          The action implied action attribute ID, "urn:oasis:names:tc:xacml:1.0:action:implied-action" .
static java.lang.String ID_ENV_CURRENT_DATE
          The environment current date attribute ID, "urn:oasis:names:tc:xacml:1.0:environment:current-date" .
static java.lang.String ID_ENV_CURRENT_DATE_TIME
          The environment current date/time attribute ID, "urn:oasis:names:tc:xacml:1.0:environment:current-dateTime" .
static java.lang.String ID_ENV_CURRENT_TIME
          The environment current time attribute ID, "urn:oasis:names:tc:xacml:1.0:environment:current-time" .
static java.lang.String ID_RES_ID
          The resource ID attribute ID, "urn:oasis:names:tc:xacml:1.0:resource:resource-id" .
static java.lang.String ID_RES_LOCATION
          The resource location attribute ID, "urn:oasis:names:tc:xacml:1.0:resource:resource-location" .
static java.lang.String ID_RES_SIMPLE_FILE_NAME
          The resource simple file name attribute ID, "urn:oasis:names:tc:xacml:1.0:resource:simple-file-name" .
static java.lang.String ID_SUB_AUTHN_DNS_NAME
          The subject authentication locality DNS name attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:authn-locality:dns-name" .
static java.lang.String ID_SUB_AUTHN_IP_ADDRESS
          The subject authentication locality IP address attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:authn-locality:ip-address" .
static java.lang.String ID_SUB_AUTHN_METHOD
          The subject authentication method attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:authentication-method" .
static java.lang.String ID_SUB_AUTHN_TIME
          The subject authentication time attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:authentication-time" .
static java.lang.String ID_SUB_CAT_ACCESS_SUBJECT
          The subject category access subject attribute ID, "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" .
static java.lang.String ID_SUB_CAT_CODEBASE
          The subject category codebase attribute ID, "urn:oasis:names:tc:xacml:1.0:subject-category:codebase" .
static java.lang.String ID_SUB_CAT_INTERMEDIARY_SUBJECT
          The subject category intermediary subject attribute ID, "urn:oasis:names:tc:xacml:1.0:subject-category:intermediary-subject" .
static java.lang.String ID_SUB_CAT_RECIPIENT_SUBJECT
          The subject category recipient attribute ID, "urn:oasis:names:tc:xacml:1.0:subject-category:recipient-subject" .
static java.lang.String ID_SUB_CAT_REQUEST_MACHINE
          The subject category requesting machine attribute ID, "urn:oasis:names:tc:xacml:1.0:subject-category:requesting-machine" .
static java.lang.String ID_SUB_ID
          The subject ID attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:subject-id" .
static java.lang.String ID_SUB_ID_QUALIFIER
          The subject ID qualifier attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:subject-id-qualifier" .
static java.lang.String ID_SUB_KEY_INFO
          The subject key information attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:key-info" .
static java.lang.String ID_SUB_REQUEST_TIME
          The subject request time attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:request-time" .
static java.lang.String ID_SUB_SESSION_START_TIME
          The subject session start time attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:session-start-time" .
 
Constructor Summary
Attribute()
          Constructor.
Attribute(java.lang.String id)
          Constructor.
Attribute(java.lang.String id, java.lang.String dataType)
          Constructor.
Attribute(java.lang.String id, java.lang.String dataType, java.lang.String issuer)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          .
 java.lang.String getDataType()
          Gets the data type of the attribute.
 java.lang.String getId()
          Gets the ID of the attribute.
 java.lang.String getIssuer()
          Gets the issuer of the attribute.
 java.util.Set<java.lang.Object> getValues()
          Gets the values of the attribute.
 int hashCode()
          .
 void setDataType(java.lang.String type)
          Sets the data type of the attribute.
 void setId(java.lang.String newId)
          Sets the ID of the attribute.
 void setIssuer(java.lang.String newIssuer)
          Sets the issuer of the attribute.
 java.lang.String toString()
          .
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DT_STRING

public static final java.lang.String DT_STRING
The string data type URI, "http://www.w3.org/2001/XMLSchema#string" .

See Also:
Constant Field Values

DT_BOOLEAN

public static final java.lang.String DT_BOOLEAN
The boolean data type URI, "http://www.w3.org/2001/XMLSchema#boolean" .

See Also:
Constant Field Values

DT_INTEGER

public static final java.lang.String DT_INTEGER
The integer data type URI, "http://www.w3.org/2001/XMLSchema#integer" .

See Also:
Constant Field Values

DT_DOUBLE

public static final java.lang.String DT_DOUBLE
The double data type URI, "http://www.w3.org/2001/XMLSchema#double" .

See Also:
Constant Field Values

DT_TIME

public static final java.lang.String DT_TIME
The time data type URI, "http://www.w3.org/2001/XMLSchema#time" .

See Also:
Constant Field Values

DT_DATE

public static final java.lang.String DT_DATE
The date data type URI, "http://www.w3.org/2001/XMLSchema#date" .

See Also:
Constant Field Values

DT_DATE_TIME

public static final java.lang.String DT_DATE_TIME
The date/time data type URI, "http://www.w3.org/2001/XMLSchema#dateTime" .

See Also:
Constant Field Values

DT_DAY_TIME

public static final java.lang.String DT_DAY_TIME
The XQuery dayTimeDuration data type URI, "http://www.w3.org/TR/2002/WD-xquery-operators-20020816#dayTimeDuration" .

See Also:
Constant Field Values

DT_YEAR_MONTH

public static final java.lang.String DT_YEAR_MONTH
The XQuery yearMonthDuration data type URI, "http://www.w3.org/TR/2002/WD-xquery-operators-20020816#yearMonthDuration" .

See Also:
Constant Field Values

DT_ANY_URI

public static final java.lang.String DT_ANY_URI
The any URI data type URI, "http://www.w3.org/2001/XMLSchema#anyURI" .

See Also:
Constant Field Values

DT_HEX_BINARY

public static final java.lang.String DT_HEX_BINARY
The hex-encoded binary data type URI, "http://www.w3.org/2001/XMLSchema#hexBinary" .

See Also:
Constant Field Values

DT_BASE64_BINARY

public static final java.lang.String DT_BASE64_BINARY
The base64-encoded binary data type URI, "http://www.w3.org/2001/XMLSchema#base64Binary" .

See Also:
Constant Field Values

DT_RFC822_NAME

public static final java.lang.String DT_RFC822_NAME
The RFC822 name (email address) data type URI, "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name" .

See Also:
Constant Field Values

DT_X500_NAME

public static final java.lang.String DT_X500_NAME
The X.500 name (DN) data type URI, "urn:oasis:names:tc:xacml:1.0:data-type:x500Name" .

See Also:
Constant Field Values

ID_ACT_ID

public static final java.lang.String ID_ACT_ID
The action ID attribute ID, "urn:oasis:names:tc:xacml:1.0:action:action-id" .

See Also:
Constant Field Values

ID_ACT_IMPLIED_ACTION

public static final java.lang.String ID_ACT_IMPLIED_ACTION
The action implied action attribute ID, "urn:oasis:names:tc:xacml:1.0:action:implied-action" .

See Also:
Constant Field Values

ID_ENV_CURRENT_TIME

public static final java.lang.String ID_ENV_CURRENT_TIME
The environment current time attribute ID, "urn:oasis:names:tc:xacml:1.0:environment:current-time" .

See Also:
Constant Field Values

ID_ENV_CURRENT_DATE

public static final java.lang.String ID_ENV_CURRENT_DATE
The environment current date attribute ID, "urn:oasis:names:tc:xacml:1.0:environment:current-date" .

See Also:
Constant Field Values

ID_ENV_CURRENT_DATE_TIME

public static final java.lang.String ID_ENV_CURRENT_DATE_TIME
The environment current date/time attribute ID, "urn:oasis:names:tc:xacml:1.0:environment:current-dateTime" .

See Also:
Constant Field Values

ID_RES_LOCATION

public static final java.lang.String ID_RES_LOCATION
The resource location attribute ID, "urn:oasis:names:tc:xacml:1.0:resource:resource-location" .

See Also:
Constant Field Values

ID_RES_ID

public static final java.lang.String ID_RES_ID
The resource ID attribute ID, "urn:oasis:names:tc:xacml:1.0:resource:resource-id" .

See Also:
Constant Field Values

ID_RES_SIMPLE_FILE_NAME

public static final java.lang.String ID_RES_SIMPLE_FILE_NAME
The resource simple file name attribute ID, "urn:oasis:names:tc:xacml:1.0:resource:simple-file-name" .

See Also:
Constant Field Values

ID_SUB_AUTHN_DNS_NAME

public static final java.lang.String ID_SUB_AUTHN_DNS_NAME
The subject authentication locality DNS name attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:authn-locality:dns-name" .

See Also:
Constant Field Values

ID_SUB_AUTHN_IP_ADDRESS

public static final java.lang.String ID_SUB_AUTHN_IP_ADDRESS
The subject authentication locality IP address attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:authn-locality:ip-address" .

See Also:
Constant Field Values

ID_SUB_AUTHN_METHOD

public static final java.lang.String ID_SUB_AUTHN_METHOD
The subject authentication method attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:authentication-method" .

See Also:
Constant Field Values

ID_SUB_AUTHN_TIME

public static final java.lang.String ID_SUB_AUTHN_TIME
The subject authentication time attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:authentication-time" .

See Also:
Constant Field Values

ID_SUB_KEY_INFO

public static final java.lang.String ID_SUB_KEY_INFO
The subject key information attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:key-info" .

See Also:
Constant Field Values

ID_SUB_REQUEST_TIME

public static final java.lang.String ID_SUB_REQUEST_TIME
The subject request time attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:request-time" .

See Also:
Constant Field Values

ID_SUB_SESSION_START_TIME

public static final java.lang.String ID_SUB_SESSION_START_TIME
The subject session start time attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:session-start-time" .

See Also:
Constant Field Values

ID_SUB_ID

public static final java.lang.String ID_SUB_ID
The subject ID attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:subject-id" .

See Also:
Constant Field Values

ID_SUB_ID_QUALIFIER

public static final java.lang.String ID_SUB_ID_QUALIFIER
The subject ID qualifier attribute ID, "urn:oasis:names:tc:xacml:1.0:subject:subject-id-qualifier" .

See Also:
Constant Field Values

ID_SUB_CAT_ACCESS_SUBJECT

public static final java.lang.String ID_SUB_CAT_ACCESS_SUBJECT
The subject category access subject attribute ID, "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" .

See Also:
Constant Field Values

ID_SUB_CAT_CODEBASE

public static final java.lang.String ID_SUB_CAT_CODEBASE
The subject category codebase attribute ID, "urn:oasis:names:tc:xacml:1.0:subject-category:codebase" .

See Also:
Constant Field Values

ID_SUB_CAT_INTERMEDIARY_SUBJECT

public static final java.lang.String ID_SUB_CAT_INTERMEDIARY_SUBJECT
The subject category intermediary subject attribute ID, "urn:oasis:names:tc:xacml:1.0:subject-category:intermediary-subject" .

See Also:
Constant Field Values

ID_SUB_CAT_RECIPIENT_SUBJECT

public static final java.lang.String ID_SUB_CAT_RECIPIENT_SUBJECT
The subject category recipient attribute ID, "urn:oasis:names:tc:xacml:1.0:subject-category:recipient-subject" .

See Also:
Constant Field Values

ID_SUB_CAT_REQUEST_MACHINE

public static final java.lang.String ID_SUB_CAT_REQUEST_MACHINE
The subject category requesting machine attribute ID, "urn:oasis:names:tc:xacml:1.0:subject-category:requesting-machine" .

See Also:
Constant Field Values
Constructor Detail

Attribute

public Attribute()
Constructor. Default DataType is "http://www.w3.org/2001/XMLSchema#string"


Attribute

public Attribute(java.lang.String id,
                 java.lang.String dataType,
                 java.lang.String issuer)
Constructor.

Parameters:
id - The attribute identifier
dataType - The attribute DataType
issuer - The attribute issuer

Attribute

public Attribute(java.lang.String id,
                 java.lang.String dataType)
Constructor. No issuer is set.

Parameters:
id - The attribute identifier
dataType - The attribute data type

Attribute

public Attribute(java.lang.String id)
Constructor. The default DataType is "http://www.w3.org/2001/XMLSchema#string".

Parameters:
id - The attribute identifier
Method Detail

getId

public java.lang.String getId()
Gets the ID of the attribute.

Returns:
ID of the attribute

setId

public void setId(java.lang.String newId)
Sets the ID of the attribute.

Parameters:
newId - ID of the attribute

getDataType

public java.lang.String getDataType()
Gets the data type of the attribute.

Returns:
data type of the attribute

setDataType

public void setDataType(java.lang.String type)
Sets the data type of the attribute.

Parameters:
type - data type of the attribute

getIssuer

public java.lang.String getIssuer()
Gets the issuer of the attribute.

Returns:
issuer of the attribute

setIssuer

public void setIssuer(java.lang.String newIssuer)
Sets the issuer of the attribute.

Parameters:
newIssuer - issuer of the attribute

getValues

public java.util.Set<java.lang.Object> getValues()
Gets the values of the attribute.

Returns:
values of the attribute

toString

public java.lang.String toString()
.

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
.

Overrides:
equals in class java.lang.Object


Copyright © 2008-2012 EMI - European Middleware Initiative. All Rights Reserved.