Class PKCS11KeyPair


  • public class PKCS11KeyPair
    extends 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:
    Lijun Liao (xipki)
    • 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 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 Object
        Returns:
        A string presentation of this object for debugging output.