org.bouncycastle.jcajce.provider.asymmetric.xwing
Class BCXWingPrivateKey
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.xwing.BCXWingPrivateKey
- All Implemented Interfaces:
- java.security.Key, java.security.PrivateKey, java.io.Serializable, XWingKey, XWingPrivateKey
- public class BCXWingPrivateKey
- extends java.lang.Object
- implements XWingPrivateKey
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
BCXWingPrivateKey
public BCXWingPrivateKey(XWingPrivateKeyParameters params)
BCXWingPrivateKey
public BCXWingPrivateKey(PrivateKeyInfo keyInfo)
throws java.io.IOException
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
getPublicKey
public XWingPublicKey getPublicKey()
- Description copied from interface:
XWingPrivateKey
- Return the public key corresponding to this private key.
- Specified by:
getPublicKey in interface XWingPrivateKey
- Returns:
- the X-Wing encapsulation key.
getAlgorithm
public final java.lang.String getAlgorithm()
- Specified by:
getAlgorithm in interface java.security.Key
- Returns:
- name of the algorithm - "X-WING".
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded in interface java.security.Key
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat in interface java.security.Key