public class EntrustVersInfo extends V3Extension
EntrustVersInfo Extension.
The EntrustVersInfo extension is used by Entrust Technologies to identify the
version and other information about the CA which issued the certificate.
The EntrustVersInfo OID is "1.2.840.113533.7.65.0".
The ASN.1 definition of the EntrustVersInfo extension is specified
as follows:
EntrustVersInfoSyntax ::= SEQUENCE {
entrustVers GeneralString,
entrustInfoFlags EntrustInfoFlags
}
EntrustInfoFlags::= BIT STRING {
keyUpdateAllowe (0), -- client is allowed to update this certificate
obsolete1 (1), -- obsolete
pkixCertif (2), -- certificate created by PKIX request
enterpriseCategory (3), -- information purposes only
webCategory (4), -- information purposes only
setCategory (5), -- information purposes only
v21Mode (6), -- certificate created in v2.1 compatibility mode
xcertCategory (7), -- information purposes only
ignoreNoKeyBackup (8) } – ignore global no key backup command
The entrustVers field specifies the version of Entrust Authority Security Manager that created the certificate.
The entrustInfo field is a proprietary bitmap used to describe the certificate and the
manner in which it was created.
This class provides several methods for getting (but not setting) the component
values of a EntrustVersInfo extension object.
V3Extension,
X509Certificate,
GeneralString| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid |
critical| Constructor and Description |
|---|
EntrustVersInfo()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getEntrustInfo()
Deprecated.
|
byte[] |
getEntrustInfoAsBytes()
Returns the
entrustInfo value of this EntrustVersInfo
extension specifying details about the certificate and how it was created as
a byte array String |
java.lang.String |
getEntrustVers()
Returns the
entrustVers value of this EntrustVersInfo
extension specifying the version of the Entrust Authority Security Manager which issued the certificate. |
ObjectID |
getObjectID()
Returns the object ID of this
EntrustVersInfo extension |
int |
hashCode()
Returns a hashcode for this identity.
|
void |
init(ASN1Object obj)
Inits this
EntrustVersInfo implementation with an ASN1Object
representing the value of this extension. |
ASN1Object |
toASN1Object()
Return the
ASN1Object value of the extension. |
java.lang.String |
toString()
Returns a string that represents the contents of this
EntrustVersInfo extension. |
getName, isCritical, setCriticalpublic static final ObjectID oid
public EntrustVersInfo()
Generating a new EntrustVersInfo extension is not supported.
This class is provided for compatibility with existing certificates only.
public ObjectID getObjectID()
EntrustVersInfo extensiongetObjectID in class V3Extensionpublic void init(ASN1Object obj) throws X509ExtensionException
EntrustVersInfo implementation with an ASN1Object
representing the value of this extension.
The ASN1Object is the extensionValue from ASN.1 type "Extension" representing
the entrustVers and entrustInfo values of this extension.
init in class V3Extensionobj - the extensionValue as an ASN1ObjectX509ExtensionException - if the extension could not be parsedpublic ASN1Object toASN1Object()
ASN1Object value of the extension.toASN1Object in class V3ExtensionASN1Object value. Returns null if the object has not been initialized.public java.lang.String getEntrustVers()
entrustVers value of this EntrustVersInfo
extension specifying the version of the Entrust Authority Security Manager which issued the certificate.entrustVers value.public byte getEntrustInfo()
getEntrustInfoAsBytes()entrustInfo value of this EntrustVersInfo
extension specifying details about the certificate and how it was created.
This remains backwards compatible with the existing toolkit API, but it is
possible a bit of data may be lost.entrustInfo value.public byte[] getEntrustInfoAsBytes()
entrustInfo value of this EntrustVersInfo
extension specifying details about the certificate and how it was created as
a byte array StringentrustInfo value.public int hashCode()
hashCode in class V3Extensionpublic java.lang.String toString()
EntrustVersInfo extension.toString in class java.lang.Object