com.motorola.iden.crypto
Class RSA_PrivateKey

java.lang.Object
  |
  +--com.motorola.iden.crypto.RSA_PrivateKey
All Implemented Interfaces:
Key, PrivateKey

public final class RSA_PrivateKey
extends java.lang.Object
implements PrivateKey

This class provides the RSA 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:
[CipherSpi]

Constructor Summary
RSA_PrivateKey(byte[] n, byte[] d, byte[] p, byte[] q)
          Initialize RSA_PrivateKey.
 
Method Summary
 byte[] get_d()
          Return the exponent
 byte[] get_n()
          Return the modulus
 byte[] get_p()
          Return the prime 1
 byte[] get_q()
          Return the prime 2
 java.lang.String getAlgorithm()
          Return the algorithm name "RSA_PrivateKey";
 byte[] getEncoded()
          Return null.
 java.lang.String getFormat()
          Return "RAW"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSA_PrivateKey

public RSA_PrivateKey(byte[] n,
                      byte[] d,
                      byte[] p,
                      byte[] q)
Initialize RSA_PrivateKey.
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Return the algorithm name "RSA_PrivateKey";
Specified by:
getAlgorithm in interface Key
Returns:
"RSA_PrivateKey"

getEncoded

public byte[] getEncoded()
Return null.
Specified by:
getEncoded in interface Key
Returns:
null

get_n

public byte[] get_n()
Return the modulus
Returns:
the modulus

get_d

public byte[] get_d()
Return the exponent
Returns:
the exponent

get_p

public byte[] get_p()
Return the prime 1
Returns:
p the prime 1

get_q

public byte[] get_q()
Return the prime 2
Returns:
q the prime 2

getFormat

public java.lang.String getFormat()
Return "RAW"
Specified by:
getFormat in interface Key
Returns:
"RAW"