java.lang.Object
gnu.javax.net.ssl.provider.JessieRSAPrivateKey
- All Implemented Interfaces:
- java.security.Key, java.security.PrivateKey, java.security.interfaces.RSAKey, java.security.interfaces.RSAPrivateKey, java.io.Serializable
- class JessieRSAPrivateKey
- extends java.lang.Object
- implements java.security.interfaces.RSAPrivateKey
modulus
private final java.math.BigInteger modulus
exponent
private final java.math.BigInteger exponent
JessieRSAPrivateKey
JessieRSAPrivateKey(java.math.BigInteger modulus,
java.math.BigInteger exponent)
getAlgorithm
public java.lang.String getAlgorithm()
- Description copied from interface:
java.security.Key
- This method returns the name of the algorithm for this key. This is a
String
such as "RSA".
- Specified by:
getAlgorithm
in interface java.security.Key
getFormat
public java.lang.String getFormat()
- Description copied from interface:
java.security.Key
- This method returns the name of the encoding format for this key. This
is the name of the ASN.1 data format used for this key, such as
"X.509" or "PKCS#8". This method returns
null
if this key
does not have an encoding format.
- Specified by:
getFormat
in interface java.security.Key
getEncoded
public byte[] getEncoded()
- Description copied from interface:
java.security.Key
- This method returns the encoded form of the key. If this key does not
support encoding, this method returns
null
.
- Specified by:
getEncoded
in interface java.security.Key
getModulus
public java.math.BigInteger getModulus()
- Description copied from interface:
java.security.interfaces.RSAKey
- Generates a modulus.
- Specified by:
getModulus
in interface java.security.interfaces.RSAKey
getPrivateExponent
public java.math.BigInteger getPrivateExponent()
- Description copied from interface:
java.security.interfaces.RSAPrivateKey
- Returns the private exponent value for this key
- Specified by:
getPrivateExponent
in interface java.security.interfaces.RSAPrivateKey
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null
, string concatenation will instead
use "null"
.
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode())
.