java.lang.Object
eu.europa.esig.dss.model.CommonObjectIdentifier
- All Implemented Interfaces:
eu.europa.esig.dss.enumerations.ObjectIdentifier,eu.europa.esig.dss.enumerations.OidAndUriBasedEnum,eu.europa.esig.dss.enumerations.OidBasedEnum,eu.europa.esig.dss.enumerations.OidDescription,eu.europa.esig.dss.enumerations.UriBasedEnum,Serializable
- Direct Known Subclasses:
CommonCommitmentType
public class CommonObjectIdentifier
extends Object
implements eu.europa.esig.dss.enumerations.ObjectIdentifier
This class provides a basic implementation of
ObjectIdentifier providing a possibility
to create a customized ObjectIdentifierType signed property.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionString[]getOid()eu.europa.esig.dss.enumerations.ObjectIdentifierQualifiergetUri()voidsetDescription(String description) Sets text describing the ObjectIdentifierType object.voidsetDocumentationReferences(String... documentationReferences) Sets references pointing to a documentation describing the ObjectIdentifierType Use : OPTIONALvoidSets OID identifying the ObjectIdentifierType Use : CONDITIONAL (shall be present in CAdES, PAdES.voidsetQualifier(eu.europa.esig.dss.enumerations.ObjectIdentifierQualifier qualifier) Sets Qualifier defining the type of OID identifier used for ObjectIdentifierType.voidSets URI identifying the ObjectIdentifierType Use : CONDITIONAL (should be present in XAdES, JAdES)
-
Constructor Details
-
CommonObjectIdentifier
public CommonObjectIdentifier()Default constructor instantiating object with null values
-
-
Method Details
-
getUri
- Specified by:
getUriin interfaceeu.europa.esig.dss.enumerations.UriBasedEnum
-
setUri
Sets URI identifying the ObjectIdentifierType Use : CONDITIONAL (should be present in XAdES, JAdES)- Parameters:
uri-String
-
getOid
- Specified by:
getOidin interfaceeu.europa.esig.dss.enumerations.OidBasedEnum
-
setOid
Sets OID identifying the ObjectIdentifierType Use : CONDITIONAL (shall be present in CAdES, PAdES. May be present in XAdES, JAdES). Note : when using OID in XAdES, a Qualifier shall be defined within the methodsetQualifier(qualifier). See EN 319 132-1 "5.1.2 The ObjectIdentifierType data type" for more information.- Parameters:
oid-String
-
getQualifier
public eu.europa.esig.dss.enumerations.ObjectIdentifierQualifier getQualifier()- Specified by:
getQualifierin interfaceeu.europa.esig.dss.enumerations.ObjectIdentifier
-
setQualifier
public void setQualifier(eu.europa.esig.dss.enumerations.ObjectIdentifierQualifier qualifier) Sets Qualifier defining the type of OID identifier used for ObjectIdentifierType. See EN 319 132-1 "5.1.2 The ObjectIdentifierType data type" for more information. Use : CONDITIONAL (shall be present XAdES when using OID identifier, but not URI) Note : used only in XAdES- Parameters:
qualifier-ObjectIdentifierQualifier
-
getDescription
- Specified by:
getDescriptionin interfaceeu.europa.esig.dss.enumerations.OidDescription
-
setDescription
Sets text describing the ObjectIdentifierType object. Use : OPTIONAL- Parameters:
description-String
-
getDocumentationReferences
- Specified by:
getDocumentationReferencesin interfaceeu.europa.esig.dss.enumerations.ObjectIdentifier
-
setDocumentationReferences
Sets references pointing to a documentation describing the ObjectIdentifierType Use : OPTIONAL- Parameters:
documentationReferences- array ofStrings
-