Class LicenseKeyPair


  • public class LicenseKeyPair
    extends java.lang.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.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LicenseKeyPair.Create  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String cipher()
      Get the stored cipher string as described in the ORACLE documentation:
      java.security.KeyPair getPair()
      Get the key pair from the object.
      byte[] getPrivate()
      Get the byte representation of the private key as it is returned by the underlying security library.
      byte[] getPublic()
      Get the byte representation of the public key as it is returned by the underlying security library.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • cipher

        public java.lang.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 java.security.KeyPair getPair()
        Get the key pair from the object.
        Returns:
        the key pair.
      • 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
      • 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