public class ObjectIdentifier extends XAdESBaseElement
The ObjectIdentifier data type can be used to identify a
particular data object. It allows the specification of a unique and
permanent identifier of an object. In addition, it may also contain,
a textual description of the nature of the data object, and a number of
references to documents where additional information about the nature of the
data object can be found.
<xsd:complexType name="ObjectIdentifierType">
<xsd:sequence>
<xsd:element name="Identifier" type="IdentifierType"/>
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
<xsd:element name="DocumentationReferences" type="DocumentationReferencesType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
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>
The optional Description element contains an informal text
describing the object identifier.
The optional DocumentationReferences element consists of an
arbitrary number of references pointing to further explanatory documentation
of the object identifier.
<xsd:complexType name="DocumentationReferencesType"> <xsd:sequence maxOccurs="unbounded"> <xsd:element name="DocumentationReference" type="xsd:anyURI"/> </xsd:sequence>
mContext, mElement, mId| Constructor and Description |
|---|
ObjectIdentifier(Context aBaglam,
Identifier aIdentifier,
java.lang.String aDescription,
java.util.List<java.lang.String> aDocumentationReferences) |
ObjectIdentifier(org.w3c.dom.Element aElement,
Context aContext)
Construct ObjectIdentifier from existing
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription() |
java.util.List<java.lang.String> |
getDocumentationReferences() |
Identifier |
getIdentifier() |
java.lang.String |
getLocalName() |
getNamespaceaddBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic ObjectIdentifier(Context aBaglam, Identifier aIdentifier, java.lang.String aDescription, java.util.List<java.lang.String> aDocumentationReferences)
public ObjectIdentifier(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 Identifier getIdentifier()
public java.lang.String getDescription()
public java.util.List<java.lang.String> getDocumentationReferences()
public java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.