Package eu.europa.esig.dss.enumerations
Enum SemanticsIdentifier
- java.lang.Object
-
- java.lang.Enum<SemanticsIdentifier>
-
- eu.europa.esig.dss.enumerations.SemanticsIdentifier
-
- All Implemented Interfaces:
OidBasedEnum,OidDescription,Serializable,Comparable<SemanticsIdentifier>
public enum SemanticsIdentifier extends Enum<SemanticsIdentifier> implements OidDescription
ETSI EN 319 412-1 V1.1.1 -- Semantics identifiers id-etsi-qcs-semantics-identifiers OBJECT IDENTIFIER ::= { itu-t(0) identified-organization(4) etsi(0) id-cert-profile(194121) 1 }
-
-
Enum Constant Summary
Enum Constants Enum Constant Description qcsSemanticsIdEIDASLegal-- Semantics identifier for eIDAS legal person identifier id-etsi-qcs-semanticsId-eIDASNatural OBJECT IDENTIFIER ::= { id-etsi-qcs-semantics-identifiers 4 }qcsSemanticsIdEIDASNatural-- Semantics identifier for eIDAS natural person identifier id-etsi-qcs-semanticsId-eIDASNatural OBJECT IDENTIFIER ::= { id-etsi-qcs-semantics-identifiers 3 }qcsSemanticsIdLegal-- Semantics identifier for legal person identifier id-etsi-qcs-SemanticsId-Legal OBJECT IDENTIFIER ::= { id-etsi-qcs-semantics-identifiers 2 }qcsSemanticsIdNatural-- Semantics identifier for natural person identifier id-etsi-qcs-semanticsId-Natural OBJECT IDENTIFIER ::= { id-etsi-qcs-semantics-identifiers 1 }
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SemanticsIdentifierfromName(String name)ReturnsSemanticsIdentifierbased on the provided identifier namestatic SemanticsIdentifierfromOid(String oid)ReturnsSemanticsIdentifierbased on the provided OIDStringgetDescription()This method returns the literal description of the OIDStringgetName()Returns the ETSI identifier nameStringgetOid()This method returns the OID valuestatic SemanticsIdentifiervalueOf(String name)Returns the enum constant of this type with the specified name.static SemanticsIdentifier[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
qcsSemanticsIdNatural
public static final SemanticsIdentifier qcsSemanticsIdNatural
-- Semantics identifier for natural person identifier id-etsi-qcs-semanticsId-Natural OBJECT IDENTIFIER ::= { id-etsi-qcs-semantics-identifiers 1 }
-
qcsSemanticsIdLegal
public static final SemanticsIdentifier qcsSemanticsIdLegal
-- Semantics identifier for legal person identifier id-etsi-qcs-SemanticsId-Legal OBJECT IDENTIFIER ::= { id-etsi-qcs-semantics-identifiers 2 }
-
qcsSemanticsIdEIDASNatural
public static final SemanticsIdentifier qcsSemanticsIdEIDASNatural
-- Semantics identifier for eIDAS natural person identifier id-etsi-qcs-semanticsId-eIDASNatural OBJECT IDENTIFIER ::= { id-etsi-qcs-semantics-identifiers 3 }
-
qcsSemanticsIdEIDASLegal
public static final SemanticsIdentifier qcsSemanticsIdEIDASLegal
-- Semantics identifier for eIDAS legal person identifier id-etsi-qcs-semanticsId-eIDASNatural OBJECT IDENTIFIER ::= { id-etsi-qcs-semantics-identifiers 4 }
-
-
Method Detail
-
values
public static SemanticsIdentifier[] 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 (SemanticsIdentifier c : SemanticsIdentifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SemanticsIdentifier 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
-
getOid
public String getOid()
Description copied from interface:OidBasedEnumThis method returns the OID value- Specified by:
getOidin interfaceOidBasedEnum- Returns:
- the OID value
-
getDescription
public String getDescription()
Description copied from interface:OidDescriptionThis method returns the literal description of the OID- Specified by:
getDescriptionin interfaceOidDescription- Returns:
- the OID description
-
fromName
public static SemanticsIdentifier fromName(String name)
ReturnsSemanticsIdentifierbased on the provided identifier name- Parameters:
name-String- Returns:
SemanticsIdentifierif found by the given identifier name, null otherwise
-
fromOid
public static SemanticsIdentifier fromOid(String oid)
ReturnsSemanticsIdentifierbased on the provided OID- Parameters:
oid-String- Returns:
SemanticsIdentifierif found by the given OID, null otherwise
-
-