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]

Constructor Summary
DH_PrivateKey(byte[] input, DHParameterSpec dhps)
          Initialize DH_PrivateKey
 
Method Summary
 java.lang.String getAlgorithm()
          Return the algorithm name "DH"
 byte[] getEncoded()
          Return the Diffie-Hellman public key
 java.lang.String getFormat()
          Return the encoding format, raw
 DHParameterSpec getParams()
          Returns the key parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DH_PrivateKey

public DH_PrivateKey(byte[] input,
                     DHParameterSpec dhps)
Initialize DH_PrivateKey

Parameters:
input - Diffie-Hellman private key
dhps - Diffie-Hellman Parameter Specification.
Method Detail

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