com.motorola.iden.crypto
Class RSA_PublicKey
java.lang.Object
|
+--com.motorola.iden.crypto.RSA_PublicKey
- All Implemented Interfaces:
- Key, PublicKey
- public final class RSA_PublicKey
- extends java.lang.Object
- implements PublicKey
This class provides the RSA 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:
[CipherSpi]
Constructor Summary |
RSA_PublicKey(byte[] n1,
byte[] e1)
Initialize RSA_PublicKey. |
Method Summary |
byte[] |
get_e()
Return the exponent |
byte[] |
get_n()
Return the modulus |
java.lang.String |
getAlgorithm()
Return the algorithm name "RSA_PublicKey"; |
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 |
RSA_PublicKey
public RSA_PublicKey(byte[] n1,
byte[] e1)
- Initialize RSA_PublicKey.
getAlgorithm
public java.lang.String getAlgorithm()
- Return the algorithm name "RSA_PublicKey";
- Specified by:
getAlgorithm
in interface Key
- Returns:
- "RSA_PublicKey"
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_e
public byte[] get_e()
- Return the exponent
- Returns:
- the exponent
getFormat
public java.lang.String getFormat()
- Return RAW
- Specified by:
getFormat
in interface Key
- Returns:
- "RAW"