com.motorola.iden.crypto
Class DH_PublicKey
java.lang.Object
|
+--com.motorola.iden.crypto.DH_PublicKey
- All Implemented Interfaces:
- Key, PublicKey
- public class DH_PublicKey
- extends java.lang.Object
- implements PublicKey
This class specifies a Diffie-Hellman public 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:
[PublicKey]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DH_PublicKey
public DH_PublicKey(byte[] input,
DHParameterSpec dhps)
- Initialize DH_PublicKey
- Parameters:
input
- Diffie-Hellman public keydhps
- Diffie-Hellman Parameter Specification.
getAlgorithm
public java.lang.String getAlgorithm()
- Return the algorithm
- Specified by:
getAlgorithm
in interface Key
- Following copied from interface:
com.motorola.iden.security.Key
- Returns:
- the name of the algorithm associated with this key.
getEncoded
public byte[] getEncoded()
- Return the Diffie-Hellman public key
- Specified by:
getEncoded
in interface Key
- Returns:
- the Diffie-Hellman public 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