public class Identifier extends XAdESBaseElement
The Identifier element contains a permanent identifier. Once the identifier is assigned, it can never be re-assigned again. It supports both the mechanism that is used to identify objects in ASN.1 and the mechanism that is usually used to identify objects in an XML environment:
Identifier consists of the identifying URI, and the optional
Qualifier attribute does not appear;
Qualifier attribute can be used to provide
a hint about the applied encoding (values OIDAsURN or OIDAsURI).
Should an OID and an URI exist identifying the same object, the present document encourages the use of the URI as explained in the first bullet above.
<xsd:complexType name="IdentifierType">
<xsd:simpleContent>
<xsd:extension base="xsd:anyURI">
<xsd:attribute name="Qualifier" type="QualifierType" use="optional"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:simpleType name="QualifierType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="OIDAsURI"/>
<xsd:enumeration value="OIDAsURN"/>
</xsd:restriction>
</xsd:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
QUALIFIER_OIDAsURI |
static java.lang.String |
QUALIFIER_OIDAsURN |
mContext, mElement, mId| Constructor and Description |
|---|
Identifier(Context aContext,
int[] aOId) |
Identifier(Context aContext,
java.lang.String uri) |
Identifier(Context aBaglam,
java.lang.String aValue,
java.lang.String aQualifier) |
Identifier(org.w3c.dom.Element aElement,
Context aContext)
Construct Identifier from existing
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLocalName() |
java.lang.String |
getQualifier() |
java.lang.String |
getValue() |
getNamespaceaddBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic static final java.lang.String QUALIFIER_OIDAsURI
public static final java.lang.String QUALIFIER_OIDAsURN
public Identifier(Context aContext, int[] aOId)
public Identifier(Context aContext, java.lang.String uri)
public Identifier(Context aBaglam, java.lang.String aValue, java.lang.String aQualifier)
public Identifier(org.w3c.dom.Element aElement,
Context aContext)
throws XMLSignatureException
aElement - xml elementaContext - according to contextXMLSignatureException - when structure is invalid or can not be
resolved appropriatelypublic java.lang.String getValue()
public java.lang.String getQualifier()
public java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.