Package org.bouncycastle.bcpg
Class EdSecretBCPGKey
- java.lang.Object
-
- org.bouncycastle.bcpg.BCPGObject
-
- org.bouncycastle.bcpg.EdSecretBCPGKey
-
- All Implemented Interfaces:
BCPGKey
,org.bouncycastle.util.Encodable
public class EdSecretBCPGKey extends BCPGObject implements BCPGKey
base class for an Edwards Curve Secret Key.
-
-
Constructor Summary
Constructors Constructor Description EdSecretBCPGKey(java.math.BigInteger x)
EdSecretBCPGKey(BCPGInputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(BCPGOutputStream out)
byte[]
getEncoded()
return the standard PGP encoding of the key.java.lang.String
getFormat()
return "PGP"java.math.BigInteger
getX()
-
-
-
Constructor Detail
-
EdSecretBCPGKey
public EdSecretBCPGKey(BCPGInputStream in) throws java.io.IOException
- Parameters:
in
-- Throws:
java.io.IOException
-
EdSecretBCPGKey
public EdSecretBCPGKey(java.math.BigInteger x)
- Parameters:
x
-
-
-
Method Detail
-
getFormat
public java.lang.String getFormat()
return "PGP"- Specified by:
getFormat
in interfaceBCPGKey
- Returns:
- "RAW" or "PGP"
- See Also:
BCPGKey.getFormat()
-
getEncoded
public byte[] getEncoded()
return the standard PGP encoding of the key.- Specified by:
getEncoded
in interfaceBCPGKey
- Specified by:
getEncoded
in interfaceorg.bouncycastle.util.Encodable
- Overrides:
getEncoded
in classBCPGObject
- Returns:
- byte[]
- See Also:
BCPGKey.getEncoded()
-
encode
public void encode(BCPGOutputStream out) throws java.io.IOException
- Specified by:
encode
in classBCPGObject
- Throws:
java.io.IOException
-
getX
public java.math.BigInteger getX()
- Returns:
- x
-
-