com.motorola.iden.crypto
Class DH_PrivateKey
java.lang.Object
|
+--com.motorola.iden.crypto.DH_PrivateKey
- All Implemented Interfaces:
- Key, PrivateKey
- public class DH_PrivateKey
- extends java.lang.Object
- implements PrivateKey
This class specifies a Diffie-Hellman private key..
MOTOROLA and the Stylized M Logo are registered trademarks of
Motorola, Inc. Reg. U.S. Pat. & Tm. Off.
© Copyright 2002 - 2004 Motorola, Inc. All Rights Reserved.
- See Also:
[PrivateKey]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DH_PrivateKey
public DH_PrivateKey(byte[] input,
DHParameterSpec dhps)
- Initialize DH_PrivateKey
- Parameters:
input
- Diffie-Hellman private keydhps
- Diffie-Hellman Parameter Specification.
getAlgorithm
public java.lang.String getAlgorithm()
- Return the algorithm name "DH"
- Specified by:
getAlgorithm
in interface Key
- Returns:
- "DH"
getEncoded
public byte[] getEncoded()
- Return the Diffie-Hellman public key
- Specified by:
getEncoded
in interface Key
- Returns:
- the Diffie-Hellman private key
getFormat
public java.lang.String getFormat()
- Return the encoding format, raw
- Specified by:
getFormat
in interface Key
- Returns:
- "RAW"
getParams
public DHParameterSpec getParams()
- Returns the key parameters.
- Returns:
- the key parameters