Bouncy Castle Cryptography 1.71

org.bouncycastle.bcpg
Class ECSecretBCPGKey

java.lang.Object
  |
  +--org.bouncycastle.bcpg.BCPGObject
        |
        +--org.bouncycastle.bcpg.ECSecretBCPGKey

public class ECSecretBCPGKey
extends BCPGObject
implements BCPGKey

base class for an EC Secret Key.


Constructor Summary
ECSecretBCPGKey(BCPGInputStream in)
           
ECSecretBCPGKey(java.math.BigInteger x)
           
 
Method Summary
 void encode(BCPGOutputStream out)
           
 byte[] getEncoded()
          return the standard PGP encoding of the key.
 java.lang.String getFormat()
          return "PGP"
 java.math.BigInteger getX()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECSecretBCPGKey

public ECSecretBCPGKey(BCPGInputStream in)
                throws java.io.IOException
Parameters:
in -  
Throws:
java.io.IOException -  

ECSecretBCPGKey

public ECSecretBCPGKey(java.math.BigInteger x)
Parameters:
x -  
Method Detail

getFormat

public java.lang.String getFormat()
return "PGP"
Specified by:
getFormat in interface BCPGKey
See Also:
BCPGKey.getFormat()

getEncoded

public byte[] getEncoded()
return the standard PGP encoding of the key.
Specified by:
getEncoded in interface BCPGKey
Overrides:
getEncoded in class BCPGObject
See Also:
BCPGKey.getEncoded()

encode

public void encode(BCPGOutputStream out)
            throws java.io.IOException
Overrides:
encode in class BCPGObject

getX

public java.math.BigInteger getX()
Returns:
x

Bouncy Castle Cryptography 1.71