| com.sun.portal.ksecurity.RSAPrivateKey
All known Subclasses: com.sun.portal.ksecurity.RSAKey,
RSAPrivateKey | abstract public interface RSAPrivateKey extends PrivateKey(Code) | | Specifies the RSA private key interface. An RSA key is not ready for
us until both the modulus and exponent have been set.
|
Method Summary | |
public boolean | equals(RSAPrivateKey k) Checks if this RSAPrivateKey has the same exponent and modulus
as the specified key. | public short | getExponent(byte[] buf, short offset) Returns the private 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 private 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(RSAPrivateKey k)(Code) | | Checks if this RSAPrivateKey has the same exponent and modulus
as the specified key.
Parameters: k - an RSAPrivateKey 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 private 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: RSAPrivateKey.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: RSAPrivateKey.setModulus |
setExponent | public void setExponent(byte[] buf, short offset, short len) throws CryptoException(Code) | | Sets the private 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: RSAPrivateKey.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: RSAPrivateKey.getModulus |
|
|