public class ValidityAssuredShortTermCerts extends V3Extension
ValidityAssuredShortTermCerts Extension specified
by ETSI EN 319 412-1.
The ValidityAssuredShortTermCerts certificate extension indicates that the validity of the certificate is assured (and therefore may not have to be checked) because it is a short-term certificate; see ETSI EN 319 412-1 V1.4.4 (2021-05).
The object identifier for the ValidityAssuredShortTermCerts extension
is specified as (see ETSI EN 319 412-1 V1.4.4):
id-etsi-ext OBJECT IDENTIFIER ::= { itu-t(0) identified-organization(4) etsi(0)
id-cert-profile(194121) 2 }
-- Extension for short-term certificate
id-etsi-ext-valassured-ST-certs OBJECT IDENTIFIER ::= { id-etsi-ext 1 }
which corresponds to the OID string "0.4.0.194121.2.1".
The ASN.1 definition of the ValidityAssuredShortTermCerts extension is specified
as follows:
ext-etsi-valassured-ST-certs EXTENSION ::= { SYNTAX NULL IDENTIFIED BY
id-etsi-ext-valassured-ST-certs }
Since the ValidityAssuredShortTermCerts extension has no specific value (only is presence
in a certificate is sufficient to indicate that the validity of the
certificate is assured) a ValidityAssuredShortTermCerts extension can be created by simply
calling the default constructor:
X509Certificate certificate = new X509Certificate(); ... ValidityAssuredShortTermCerts validityAssuredShortTermCertsExt = new ValidityAssuredShortTermCerts(); certificate.addExtension(validityAssuredShortTermCertsExt);Use method
getExtension for getting
a ValidityAssuredShortTermCerts extension when parsing a certificate:
X509Certificate cert = ...;
...
// look if ValidityAssuredShortTermCerts extension is included:
ValidityAssuredShortTermCerts serviceProvider = cert.getExtension(ValidityAssuredShortTermCerts.oid);
if (serviceProvider != null) {
...
}
ObjectID,
X509Certificate,
X509Extensions,
V3Extension| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier of this
ValidityAssuredShortTermCerts extension. |
critical| Constructor and Description |
|---|
ValidityAssuredShortTermCerts()
Creates a new
ValidityAssuredShortTermCerts extension. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object otherObject)
Compares this object with the given one..
|
ObjectID |
getObjectID()
Returns the object ID of this
ValidityAssuredShortTermCerts extension. |
int |
hashCode()
Returns a hashcode for this identity.
|
void |
init(ASN1Object asn1Object)
Inits this
ValidityAssuredShortTermCerts implementation with an ASN1Object
representing the value of this extension. |
ASN1Object |
toASN1Object()
Returns an ASN1Object representing the value of this
ValidityAssuredShortTermCerts
extension object. |
java.lang.String |
toString()
Returns a string that represents the contents of this extension.
|
getName, isCritical, setCriticalpublic static final ObjectID oid
ValidityAssuredShortTermCerts extension.
The corresponding OID string is "0.4.0.194121.2.1".public ValidityAssuredShortTermCerts()
ValidityAssuredShortTermCerts extension.public ObjectID getObjectID()
ValidityAssuredShortTermCerts extension.getObjectID in class V3Extensionpublic void init(ASN1Object asn1Object) throws X509ExtensionException
ValidityAssuredShortTermCerts implementation with an ASN1Object
representing the value of this extension.
The given ASN1Object may be the one created by toASN1Object().
This method is used by the X509Extensions class when parsing the ASN.1 representation
of a certificate for properly initializing an included
ValidityAssuredShortTermCerts extension. This method initializes the
extension only with its value, but not with its critical
specification. For that reason, this method shall not be
explicitly called by an application.
init in class V3Extensionasn1Object - The ValidityAssuredShortTermCerts extension value as ASN1Object (NULL).X509ExtensionException - If the extension value is not an ASN.1 NULL objectpublic ASN1Object toASN1Object()
ValidityAssuredShortTermCerts
extension object.
The returned ASN1Object is either an ASN.1 NULL object:
ValidityAssuredShortTermCerts ::= NULL
toASN1Object in class V3ExtensionValidityAssuredShortTermCerts as ASN1Object (NULL).public int hashCode()
hashCode in class V3Extensionpublic boolean equals(java.lang.Object otherObject)
equals in class java.lang.ObjectotherObject - The other object to compare with.public java.lang.String toString()
toString in class java.lang.Object