org.bouncycastle.bcpg
Class ElGamalSecretBCPGKey
java.lang.Object
   org.bouncycastle.bcpg.BCPGObject
org.bouncycastle.bcpg.BCPGObject
       org.bouncycastle.bcpg.ElGamalSecretBCPGKey
org.bouncycastle.bcpg.ElGamalSecretBCPGKey
- All Implemented Interfaces: 
- BCPGKey
- public class ElGamalSecretBCPGKey- extends BCPGObject- implements BCPGKey
base class for an ElGamal Secret Key.
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ElGamalSecretBCPGKey
public ElGamalSecretBCPGKey(BCPGInputStream in)
                     throws java.io.IOException
- Parameters:
- in-
- Throws:
- java.io.IOException
ElGamalSecretBCPGKey
public ElGamalSecretBCPGKey(java.math.BigInteger x)
- Parameters:
- x-
getFormat
public java.lang.String getFormat()
- return "PGP"
 
- 
- Specified by:
- getFormatin interface- BCPGKey
 
- 
- Returns:
- "RAW" or "PGP"
- See Also:
- BCPGKey.getFormat()
 
getX
public java.math.BigInteger getX()
- 
 
- 
 
getEncoded
public byte[] getEncoded()
- return the standard PGP encoding of the key.
 
- 
- Specified by:
- getEncodedin interface- BCPGKey
- Overrides:
- getEncodedin class- BCPGObject
 
- 
- See Also:
- BCPGKey.getEncoded()
 
encode
public void encode(BCPGOutputStream out)
            throws java.io.IOException
- 
- Specified by:
- encodein class- BCPGObject
 
- 
- Throws:
- java.io.IOException