Package org.bouncycastle.jce.provider
Class JCEDHPublicKey
java.lang.Object
org.bouncycastle.jce.provider.JCEDHPublicKey
- All Implemented Interfaces:
Serializable,Key,PublicKey,DHKey,DHPublicKey
public class JCEDHPublicKey extends Object implements DHPublicKey
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description StringgetAlgorithm()Returns the name of the algorithm of this key.byte[]getEncoded()Returns the encoded form of this key, ornullif encoding is not supported by this key.StringgetFormat()Returns the name of the format used to encode this key, ornullif it can not be encoded.DHParameterSpecgetParams()Returns the parameters for this key.BigIntegergetY()Returns this key's public value Y.
-
Method Details
-
getAlgorithm
Description copied from interface:KeyReturns the name of the algorithm of this key. If the algorithm is unknown,nullis returned.- Specified by:
getAlgorithmin interfaceKey- Returns:
- the name of the algorithm of this key or
nullif the algorithm is unknown.
-
getFormat
Description copied from interface:KeyReturns the name of the format used to encode this key, ornullif it can not be encoded. -
getEncoded
public byte[] getEncoded()Description copied from interface:KeyReturns the encoded form of this key, ornullif encoding is not supported by this key.- Specified by:
getEncodedin interfaceKey- Returns:
- the encoded form of this key, or
nullif encoding is not supported by this key.
-
getParams
Description copied from interface:DHKeyReturns the parameters for this key. -
getY
Description copied from interface:DHPublicKeyReturns this key's public value Y.- Specified by:
getYin interfaceDHPublicKey- Returns:
- this key's public value Y.
-