| com.sun.portal.ksecurity.RSAPublicKey
All known Subclasses: com.sun.portal.ksecurity.RSAKey,
RSAPublicKey | abstract public interface RSAPublicKey extends PublicKey(Code) | | Specifies the RSA public key interface. An RSA key is not ready for
us until both the modulus and exponent have been set.
|
Method Summary | |
public boolean | equals(RSAPublicKey k) Checks if this RSAPublicKey has the same exponent and modulus
as the specified key. | public short | getExponent(byte[] buf, short offset) Returns the public exponent value of the key in the specified
buffer. | public short | getModulus(byte[] buf, short offset) Returns the modulus value of the key in the specified buffer. | public void | setExponent(byte[] buf, short offset, short len) Sets the public exponent value of the key. | public void | setModulus(byte[] buf, short offset, short len) Sets the modulus value of the key. |
equals | public boolean equals(RSAPublicKey k)(Code) | | Checks if this RSAPublicKey has the same exponent and modulus
as the specified key.
Parameters: k - an RSAPublicKey against which this key is to be compared true if the two keys have the same exponent and modulus,false otherwise |
getExponent | public short getExponent(byte[] buf, short offset)(Code) | | Returns the public exponent value of the key in the specified
buffer. The data format is big-endian and right-aligned (the
least significant bit is the least significant bit of the last
byte).
Parameters: buf - the output buffer where the exponent is placed Parameters: offset - offset within buf where the exponent starts byte length of the exponent copied into buf See Also: RSAPublicKey.setExponent |
getModulus | public short getModulus(byte[] buf, short offset)(Code) | | Returns the modulus value of the key in the specified buffer. The
data format is big-endian and right-aligned (the least significant
bit is the least significant bit of the last byte).
Parameters: buf - the output buffer where the modulus is placed Parameters: offset - offset within buf where the modulus starts byte length of the modulus copied into buf See Also: RSAPublicKey.setModulus |
setExponent | public void setExponent(byte[] buf, short offset, short len) throws CryptoException(Code) | | Sets the public exponent value of the key. The
data format is big-endian and right-aligned (the least significant
bit is the least significant bit of the last byte).
Parameters: buf - the input buffer containing the exponent Parameters: offset - offset within buf where the exponent starts Parameters: len - exponent length in bytes exception: CryptoException - with reason code set to ILLEGAL_VALUEif the specified exponent data is inconsistent with the key size. See Also: RSAPublicKey.getExponent |
setModulus | public void setModulus(byte[] buf, short offset, short len) throws CryptoException(Code) | | Sets the modulus value of the key. The data format is big-endian
and right-aligned (the least significant bit is the least
significant bit of the last byte).
Parameters: buf - the input buffer containing the modulus Parameters: offset - offset within buf where the modulus starts Parameters: len - modulus length in bytes exception: CryptoException - with reason code set to ILLEGAL_VALUEif the specified modulus data is inconsistent with the key size. See Also: RSAPublicKey.getModulus |
|
|