org.example.azapi.constants
Enum AzDataTypeIdDnsName
java.lang.Object
java.lang.Enum<AzDataTypeIdDnsName>
org.example.azapi.constants.AzDataTypeIdDnsName
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<AzDataTypeIdDnsName>, AzDataTypeId
public enum AzDataTypeIdDnsName
- extends java.lang.Enum<AzDataTypeIdDnsName>
- implements AzDataTypeId
Method Summary |
java.lang.String |
toString()
|
static AzDataTypeIdDnsName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AzDataTypeIdDnsName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
AZ_DATATYPE_ID_DNSNAME
public static final AzDataTypeIdDnsName AZ_DATATYPE_ID_DNSNAME
- XACML DataType: urn:oasis:names:tc:xacml:2.0:data-type:dnsName.
The “urn:oasis:names:tc:xacml:2.0:data-type:dnsName” primitive
type represents a Domain Name Service (DNS) host name, with optional
port or port range. The syntax SHALL be:
dnsName = hostname [ ":" portrange ]
The hostname is formatted in accordance with IETF RFC 2396
"Uniform Resource Identifiers (URI): Generic Syntax", section 3.2,
except that a wildcard "*" may be used in the left-most component
of the hostname to indicate "any subdomain" under the domain
specified to its right.
For both the “urn:oasis:names:tc:xacml:2.0:data-type:ipAddress” and
“urn:oasis:names:tc:xacml:2.0:data-type:dnsName” data-types, the port
or port range syntax SHALL be
portrange = portnumber | "-"portnumber | portnumber"-"[portnumber]
where "portnumber" is a decimal port number.
If the port number is of the form "-x", where "x" is a port
number, then the range is all ports numbered "x" and below.
If the port number is of the form"x-", then the range is
all ports numbered "x" and above.
[This syntax is taken from the Java SocketPermission.]
values
public static AzDataTypeIdDnsName[] 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 (AzDataTypeIdDnsName c : AzDataTypeIdDnsName.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AzDataTypeIdDnsName valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<AzDataTypeIdDnsName>