Package org.xipki.pkcs11.wrapper
Class Version
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.Version
-
public class Version extends java.lang.ObjectObjects of this class represent a version. This consists of a major and a minor version number.- Author:
- Karl Scheibelhofer (SIC), Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedVersion(byte major, byte minor)Constructor for internal use only.protectedVersion(CK_VERSION ckVersion)Constructor taking a CK_VERSION object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetMajor()Get the major version number.bytegetMinor()Get the minor version number.java.lang.StringtoString()Returns the string representation of this object.
-
-
-
Constructor Detail
-
Version
protected Version(byte major, byte minor)Constructor for internal use only.- Parameters:
major- the major versionminor- the minor version.
-
Version
protected Version(CK_VERSION ckVersion)
Constructor taking a CK_VERSION object.- Parameters:
ckVersion- A CK_VERSION object.
-
-
Method Detail
-
getMajor
public byte getMajor()
Get the major version number.- Returns:
- The major version number.
-
getMinor
public byte getMinor()
Get the minor version number.- Returns:
- The minor version number.
-
toString
public java.lang.String toString()
Returns the string representation of this object.- Overrides:
toStringin classjava.lang.Object- Returns:
- the string representation of this object
-
-