Package org.xipki.pkcs11.wrapper
Class PKCS11KeyPair
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.PKCS11KeyPair
-
public class PKCS11KeyPair extends java.lang.ObjectThis 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 longgetPrivateKey()Get the private key part of this key-pair.longgetPublicKey()Get the public key part of this key-pair.java.lang.StringtoString()Returns a string representation of the current object.
-
-
-
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:
toStringin classjava.lang.Object- Returns:
- A string presentation of this object for debugging output.
-
-