public class CMSVersion
extends java.lang.Object
The CMSVersion is defined as ASN.1 Integer: (see RFC 5652):
CMSVersion ::= INTEGER { v0(0), v1(1), v2(2), v3(3), v4(4), v5(5) }
Constructor and Description |
---|
CMSVersion(int version)
Creates a CMSVersion from the version number.
|
Modifier and Type | Method and Description |
---|---|
void |
clearEncoded()
Clears the encoded CMSVersion.
|
byte[] |
getEncoded()
Returns the DER encoded CMSVersion.
|
int |
getVersion()
Gets the version.
|
iaik.asn1.ASN1Object |
toASN1Object()
Returns this CMSVersion as ASN1Object.
|
java.lang.String |
toString()
Returns a String representation of the version.
|
public CMSVersion(int version)
version
- the version numberpublic int getVersion()
public iaik.asn1.ASN1Object toASN1Object()
public byte[] getEncoded()
public void clearEncoded()
toASN1Object()
or
getEncoded()
will build the internal ASN.1 object
anew.public java.lang.String toString()
toString
in class java.lang.Object