Package org.ow2.authzforce.core.pdp.impl
Enum StandardSubjectAttribute
- java.lang.Object
-
- java.lang.Enum<StandardSubjectAttribute>
-
- org.ow2.authzforce.core.pdp.impl.StandardSubjectAttribute
-
- All Implemented Interfaces:
Serializable
,Comparable<StandardSubjectAttribute>
public enum StandardSubjectAttribute extends Enum<StandardSubjectAttribute>
Attributes defined in Appendix B.4 (Subject attributes) with standard fixed data-type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_SUBJECT_DNS_NAME
urn:oasis:names:tc:xacml:3.0:subject:authn-locality:dns-nameACCESS_SUBJECT_IP_ADDRESS
Access subject category urn:oasis:names:tc:xacml:3.0:subject:authn-locality:ip-addressINTERMEDIARY_SUBJECT_DNS_NAME
INTERMEDIARY_SUBJECT_IP_ADDRESS
Intermediary subject categoryRECIPIENT_SUBJECT_DNS_NAME
RECIPIENT_SUBJECT_IP_ADDRESS
Recipient subject categorySUBJECT_CODEBASE_DNS_NAME
SUBJECT_CODEBASE_IP_ADDRESS
Subject codebase categorySUBJECT_REQUESTING_MACHINE_DNS_NAME
SUBJECT_REQUESTING_MACHINE_IP_ADDRESS
Subject's requesting machine category
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.ow2.authzforce.core.pdp.api.value.AttributeDatatype<?>
getDatatype()
Get attribute data-typeorg.ow2.authzforce.core.pdp.api.AttributeFqn
getFQN()
Get attribute GUIDstatic StandardSubjectAttribute
getInstance(org.ow2.authzforce.core.pdp.api.AttributeFqn attributeFqn)
Get the standard environment attribute corresponding to the given IDstatic StandardSubjectAttribute
valueOf(String name)
Returns the enum constant of this type with the specified name.static StandardSubjectAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCESS_SUBJECT_IP_ADDRESS
public static final StandardSubjectAttribute ACCESS_SUBJECT_IP_ADDRESS
Access subject category urn:oasis:names:tc:xacml:3.0:subject:authn-locality:ip-address
-
ACCESS_SUBJECT_DNS_NAME
public static final StandardSubjectAttribute ACCESS_SUBJECT_DNS_NAME
urn:oasis:names:tc:xacml:3.0:subject:authn-locality:dns-name
-
INTERMEDIARY_SUBJECT_IP_ADDRESS
public static final StandardSubjectAttribute INTERMEDIARY_SUBJECT_IP_ADDRESS
Intermediary subject category
-
INTERMEDIARY_SUBJECT_DNS_NAME
public static final StandardSubjectAttribute INTERMEDIARY_SUBJECT_DNS_NAME
-
SUBJECT_CODEBASE_IP_ADDRESS
public static final StandardSubjectAttribute SUBJECT_CODEBASE_IP_ADDRESS
Subject codebase category
-
SUBJECT_CODEBASE_DNS_NAME
public static final StandardSubjectAttribute SUBJECT_CODEBASE_DNS_NAME
-
RECIPIENT_SUBJECT_IP_ADDRESS
public static final StandardSubjectAttribute RECIPIENT_SUBJECT_IP_ADDRESS
Recipient subject category
-
RECIPIENT_SUBJECT_DNS_NAME
public static final StandardSubjectAttribute RECIPIENT_SUBJECT_DNS_NAME
-
SUBJECT_REQUESTING_MACHINE_IP_ADDRESS
public static final StandardSubjectAttribute SUBJECT_REQUESTING_MACHINE_IP_ADDRESS
Subject's requesting machine category
-
SUBJECT_REQUESTING_MACHINE_DNS_NAME
public static final StandardSubjectAttribute SUBJECT_REQUESTING_MACHINE_DNS_NAME
-
-
Method Detail
-
values
public static StandardSubjectAttribute[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StandardSubjectAttribute c : StandardSubjectAttribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StandardSubjectAttribute valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getFQN
public org.ow2.authzforce.core.pdp.api.AttributeFqn getFQN()
Get attribute GUID- Returns:
- attribute GUID (AttributeId, Issuer, Category)
-
getDatatype
public org.ow2.authzforce.core.pdp.api.value.AttributeDatatype<?> getDatatype()
Get attribute data-type- Returns:
- attribute data-type
-
getInstance
public static StandardSubjectAttribute getInstance(org.ow2.authzforce.core.pdp.api.AttributeFqn attributeFqn)
Get the standard environment attribute corresponding to the given ID- Parameters:
attributeFqn
- standard attribute ID- Returns:
- StandardEnvironmentAttribute corresponding to given ID, or null if there is no standard environment attribute with such ID
-
-