|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcryptix.provider.rsa.BaseRSAPublicKey
cryptix.provider.rsa.RawRSAPublicKey
A class representing a RAW-encoded RSA public key.
The encoding consists of the following, in order:
Each integer is represented as follows:
Byte Length
offset (bytes) Meaning
0 2 The length in bits of this BigInteger (MSB first);
2 variable The BigInteger's magnitude with no leading zeroes,
again MSB first.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.7 $
| Field Summary |
|---|
| Fields inherited from interface java.security.PublicKey |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
RawRSAPublicKey(java.math.BigInteger n)
Constructs a raw RSA public key given the public modulus and using the Fermat prime F4 (value 0x10001) as the exponent. |
|
RawRSAPublicKey(java.math.BigInteger n,
java.math.BigInteger e)
Constructs a raw RSA public key given the public modulus n, and the public exponent e. |
|
RawRSAPublicKey(java.io.InputStream is)
Constructs a raw RSA public key from data read from an InputStream, encoded as described above. |
|
| Method Summary | |
|---|---|
byte[] |
getEncoded()
Returns an encoding of the key as a byte array, as described above. |
java.lang.String |
getFormat()
Returns the encoding format name, for this class always "RAW". |
| Methods inherited from class cryptix.provider.rsa.BaseRSAPublicKey |
|---|
getAlgorithm, getExponent, getModulus, setRsaParams, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RawRSAPublicKey(java.math.BigInteger n,
java.math.BigInteger e)
n - the public moduluse - the public exponentpublic RawRSAPublicKey(java.math.BigInteger n)
n - the public modulus
public RawRSAPublicKey(java.io.InputStream is)
throws java.io.IOException
is - the input stream from which data is parsed.
java.io.IOException - if any I/O error occurs.getEncoded()| Method Detail |
public java.lang.String getFormat()
public byte[] getEncoded()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||