Class LicenseKeyPair


  • public class LicenseKeyPair
    extends Object
    A LisenceKeyPair contains the public and the private key. In some cases one of the keys may be null. Theobject also contains the string that identifies the signing algorithm to be used with the key pair.
    • Method Detail

      • cipher

        public String cipher()
        Get the stored cipher string as described in the ORACLE documentation:

        https://docs.oracle.com/javase/7/docs/api/javax/crypto/Cipher.html

        Returns:
        the ipher string as was specified by the user who created the key.
      • getPair

        public KeyPair getPair()
        Get the key pair from the object.
        Returns:
        the key pair.
      • getPublic

        public byte[] getPublic()
        Get the byte representation of the public key as it is returned by the underlying security library. This is NOT the byte array that contains the algorithm at the start. This is the key in raw format.
        Returns:
        the key as bytes
      • getPrivate

        public byte[] getPrivate()
        Get the byte representation of the private key as it is returned by the underlying security library. This is NOT the byte array that contains the algorithm at the start. This is the key in raw format.
        Returns:
        the key as bytes