Package eu.europa.esig.dss.model
Class CommonObjectIdentifier
java.lang.Object
eu.europa.esig.dss.model.CommonObjectIdentifier
- All Implemented Interfaces:
ObjectIdentifier
,OidAndUriBasedEnum
,OidBasedEnum
,OidDescription
,UriBasedEnum
,Serializable
- Direct Known Subclasses:
CommonCommitmentType
This class provides a basic implementation of
ObjectIdentifier
providing a possibility
to create a customized ObjectIdentifierType signed property.- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the literal description of the OIDString[]
Returns a list of URI-based references NOTE: used in XAdESgetOid()
This method returns the OID valueReturns Object Identifier QualifiergetUri()
Returns a URIvoid
setDescription
(String description) Sets text describing the ObjectIdentifierType object.void
setDocumentationReferences
(String... documentationReferences) Sets references pointing to a documentation describing the ObjectIdentifierType Use : OPTIONALvoid
Sets OID identifying the ObjectIdentifierType Use : CONDITIONAL (shall be present in CAdES, PAdES.void
setQualifier
(ObjectIdentifierQualifier qualifier) Sets Qualifier defining the type of OID identifier used for ObjectIdentifierType.void
Sets 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
Description copied from interface:UriBasedEnum
Returns a URI- Specified by:
getUri
in interfaceUriBasedEnum
- Returns:
String
-
setUri
-
getOid
Description copied from interface:OidBasedEnum
This method returns the OID value- Specified by:
getOid
in interfaceOidBasedEnum
- Returns:
- the OID value
-
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
Description copied from interface:ObjectIdentifier
Returns Object Identifier Qualifier- Specified by:
getQualifier
in interfaceObjectIdentifier
- Returns:
ObjectIdentifierQualifier
-
setQualifier
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
Description copied from interface:OidDescription
This method returns the literal description of the OID- Specified by:
getDescription
in interfaceOidDescription
- Returns:
- the OID description
-
setDescription
-
getDocumentationReferences
Description copied from interface:ObjectIdentifier
Returns a list of URI-based references NOTE: used in XAdES- Specified by:
getDocumentationReferences
in interfaceObjectIdentifier
- Returns:
- an array of URI
String
references
-
setDocumentationReferences
-