Bouncy Castle Cryptography Library 1.87

org.bouncycastle.jcajce.provider.asymmetric.xwing
Class BCXWingPrivateKey

java.lang.Object
  extended byorg.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

Constructor Summary
BCXWingPrivateKey(PrivateKeyInfo keyInfo)
           
BCXWingPrivateKey(XWingPrivateKeyParameters params)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 XWingPublicKey getPublicKey()
          Return the public key corresponding to this private key.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BCXWingPrivateKey

public BCXWingPrivateKey(XWingPrivateKeyParameters params)

BCXWingPrivateKey

public BCXWingPrivateKey(PrivateKeyInfo keyInfo)
                  throws java.io.IOException
Method Detail

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

Bouncy Castle Cryptography Library 1.87