Package net.i2p.crypto.elgamal.impl
Class ElGamalPrivateKeyImpl
- java.lang.Object
- 
- net.i2p.crypto.elgamal.impl.ElGamalPrivateKeyImpl
 
- 
- All Implemented Interfaces:
- Serializable,- Key,- PrivateKey,- DHKey,- DHPrivateKey,- Destroyable,- ElGamalKey,- ElGamalPrivateKey
 
 public class ElGamalPrivateKeyImpl extends Object implements ElGamalPrivateKey, DHPrivateKey - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedElGamalPrivateKeyImpl()ElGamalPrivateKeyImpl(BigInteger x, ElGamalParameterSpec elSpec)ElGamalPrivateKeyImpl(PKCS8EncodedKeySpec spec)ElGamalPrivateKeyImpl(DHPrivateKey key)ElGamalPrivateKeyImpl(DHPrivateKeySpec spec)ElGamalPrivateKeyImpl(ElGamalPrivateKey key)ElGamalPrivateKeyImpl(ElGamalPrivateKeySpec spec)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlgorithm()byte[]getEncoded()Return a PKCS8 representation of the key.StringgetFormat()return the encoding format we produce in getEncoded().ElGamalParameterSpecgetParameters()DHParameterSpecgetParams()BigIntegergetX()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface javax.security.auth.Destroyabledestroy, isDestroyed
 
- 
 
- 
- 
- 
Constructor Detail- 
ElGamalPrivateKeyImplprotected ElGamalPrivateKeyImpl() 
 - 
ElGamalPrivateKeyImplpublic ElGamalPrivateKeyImpl(ElGamalPrivateKey key) 
 - 
ElGamalPrivateKeyImplpublic ElGamalPrivateKeyImpl(DHPrivateKey key) 
 - 
ElGamalPrivateKeyImplpublic ElGamalPrivateKeyImpl(ElGamalPrivateKeySpec spec) 
 - 
ElGamalPrivateKeyImplpublic ElGamalPrivateKeyImpl(DHPrivateKeySpec spec) 
 - 
ElGamalPrivateKeyImplpublic ElGamalPrivateKeyImpl(BigInteger x, ElGamalParameterSpec elSpec) 
 - 
ElGamalPrivateKeyImplpublic ElGamalPrivateKeyImpl(PKCS8EncodedKeySpec spec) 
 
- 
 - 
Method Detail- 
getAlgorithmpublic String getAlgorithm() - Specified by:
- getAlgorithmin interface- Key
 
 - 
getFormatpublic String getFormat() return the encoding format we produce in getEncoded().
 - 
getEncodedpublic byte[] getEncoded() Return a PKCS8 representation of the key. The sequence returned represents a full PrivateKeyInfo object.- Specified by:
- getEncodedin interface- Key
- Returns:
- a PKCS8 representation of the key.
 
 - 
getParameterspublic ElGamalParameterSpec getParameters() - Specified by:
- getParametersin interface- ElGamalKey
 
 - 
getParamspublic DHParameterSpec getParams() 
 - 
getXpublic BigInteger getX() - Specified by:
- getXin interface- DHPrivateKey
- Specified by:
- getXin interface- ElGamalPrivateKey
 
 
- 
 
-