Class PKCS11KeyPair


  • public class PKCS11KeyPair
    extends java.lang.Object
    This class does not correspond to any PKCS#11 object. It is only a pair of a private key and a public key.
    Author:
    Karl Scheibelhofer (SIC), Lijun Liao (xipki)
    • Constructor Summary

      Constructors 
      Constructor Description
      PKCS11KeyPair​(long publicKey, long privateKey)
      Constructor that takes a public and a private key.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getPrivateKey()
      Get the private key part of this key-pair.
      long getPublicKey()
      Get the public key part of this key-pair.
      java.lang.String toString()
      Returns a string representation of the current object.
      • Methods inherited from class java.lang.Object

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

      • PKCS11KeyPair

        public PKCS11KeyPair​(long publicKey,
                             long privateKey)
        Constructor that takes a public and a private key. None can be null.
        Parameters:
        publicKey - The public key of the key-pair.
        privateKey - The private key of the key-pair.
    • Method Detail

      • getPublicKey

        public long getPublicKey()
        Get the public key part of this key-pair.
        Returns:
        The public key part of this key-pair.
      • getPrivateKey

        public long getPrivateKey()
        Get the private key part of this key-pair.
        Returns:
        The private key part of this key-pair.
      • toString

        public java.lang.String toString()
        Returns a string representation of the current object. The output is only for debugging purposes and should not be used for other purposes.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string presentation of this object for debugging output.