Class Version


  • public class Version
    extends java.lang.Object
    Objects 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
      protected Version​(byte major, byte minor)
      Constructor for internal use only.
      protected Version​(CK_VERSION ckVersion)
      Constructor taking a CK_VERSION object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte getMajor()
      Get the major version number.
      byte getMinor()
      Get the minor version number.
      java.lang.String toString()
      Returns the string representation of this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Version

        protected Version​(byte major,
                          byte minor)
        Constructor for internal use only.
        Parameters:
        major - the major version
        minor - 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:
        toString in class java.lang.Object
        Returns:
        the string representation of this object