|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opencard.opt.security.RSAPublicKey
Contains a public RSA key. implements the java.security.PrivateKey interface In this package OpenCard provides key classes for common algorithms like RSA, DSA (or DES) that each concrete card service implementing a card service interface should support instead of defining its own key classes. Only for new PKA algorithms that OpenCard does not yet support a card service may define its own key classes.
PrivateKey
, Serialized FormField Summary | |
protected java.math.BigInteger |
e
Public exponent |
protected int |
el
Length of public exponent |
protected int |
inputLength
input data length |
protected int |
keyLength
Key length (in bits) |
protected java.math.BigInteger |
m
Modulus |
protected int |
outputLength
output data length |
Constructor Summary | |
RSAPublicKey(java.math.BigInteger e,
java.math.BigInteger m)
Produce an RSAPublicKey from the given BigIntegers. |
|
RSAPublicKey(int eLength,
byte[] e,
byte[] m,
int keyLength)
Produce an RSAPublicKey from the given byte arrays. |
Method Summary | |
java.lang.String |
getAlgorithm()
Conformance to the java.security interface |
byte[] |
getEncoded()
Conformance to the java.security interface |
java.lang.String |
getFormat()
Conformance to the java.security interface |
int |
maxInputLength()
Returns the number of bytes to be input into a signing operation with this key. |
int |
maxOutputLength()
Returns the number of bytes to be generated by a signing operation with this key. |
java.math.BigInteger |
modulus()
Return modulus of this key. |
java.math.BigInteger |
publicExponent()
Return Public exponent. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int el
protected java.math.BigInteger e
protected java.math.BigInteger m
protected int inputLength
protected int outputLength
protected int keyLength
Constructor Detail |
public RSAPublicKey(int eLength, byte[] e, byte[] m, int keyLength)
eLength
- Length of public exponent.e
- Public Exponent.m
- ModuluskeyLength
- The nominal size of the key in bits.public RSAPublicKey(java.math.BigInteger e, java.math.BigInteger m)
e
- Public Exponent.m
- Modulus.Method Detail |
public java.lang.String getAlgorithm()
PublicKey
public byte[] getEncoded()
PublicKey
public java.lang.String getFormat()
PublicKey
public int maxInputLength()
public int maxOutputLength()
public java.math.BigInteger modulus()
public java.math.BigInteger publicExponent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |