com.entrust.toolkit.x509.extensions
Class EntrustVersInfo

java.lang.Object
  |
  +--iaik.x509.V3Extension
        |
        +--com.entrust.toolkit.x509.extensions.EntrustVersInfo

public class EntrustVersInfo
extends V3Extension

This class implements the 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:

 EntrustVersInfo ::=  SEQUENCE {
     entrustVers	[0]  GeneralString,
     entrustInfo	[1]  BIT_STRING }
 
The entrustVers field specifies the version of Entrust/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.

Copyright 1998 Entrust Technologies Limited.

See Also:
V3Extension, X509Certificate, GeneralString

Field Summary
static ObjectID oid
           
 
Fields inherited from class iaik.x509.V3Extension
critical
 
Constructor Summary
EntrustVersInfo()
          Default constructor.
 
Method Summary
 byte getEntrustInfo()
          Returns the entrustInfo value of this EntrustVersInfo extension specifying details about the certificate and how it was created.
 java.lang.String getEntrustVers()
          Returns the entrustVers value of this EntrustVersInfo extension specifying the version of the Entrust/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()
          Stub function to meet V3Extension criteria.
 java.lang.String toString()
          Returns a string that represents the contents of this EntrustVersInfo extension.
 
Methods inherited from class iaik.x509.V3Extension
getName, isCritical, setCritical
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

oid

public static final ObjectID oid
Constructor Detail

EntrustVersInfo

public EntrustVersInfo()
Default constructor.

Generating a new EntrustVersInfo extension is not supported. This class is provided for compatibility with existing certificates only.

Method Detail

getObjectID

public ObjectID getObjectID()
Returns the object ID of this EntrustVersInfo extension
Overrides:
getObjectID in class V3Extension
Returns:
the object ID

init

public void init(ASN1Object obj)
          throws X509ExtensionException
Inits this 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.

Overrides:
init in class V3Extension
Parameters:
obj - the extensionValue as an ASN1Object
Throws:
X509ExtensionException - if the extension could not be parsed

toASN1Object

public ASN1Object toASN1Object()
Stub function to meet V3Extension criteria. Returns null.
Overrides:
toASN1Object in class V3Extension
Tags copied from class: V3Extension
Returns:
the value of the extension as ASN1Object
Throws:
X509ExtensionException - if the extension could not be created

getEntrustVers

public java.lang.String getEntrustVers()
Returns the entrustVers value of this EntrustVersInfo extension specifying the version of the Entrust/Manager which issued the certificate.
Returns:
the entrustVers value.

getEntrustInfo

public byte getEntrustInfo()
Returns the entrustInfo value of this EntrustVersInfo extension specifying details about the certificate and how it was created.
Returns:
the entrustInfo value.

hashCode

public int hashCode()
Returns a hashcode for this identity.
Overrides:
hashCode in class V3Extension
Returns:
a hash code for this identity

toString

public java.lang.String toString()
Returns a string that represents the contents of this EntrustVersInfo extension.
Overrides:
toString in class java.lang.Object
Returns:
the string representation