org.apache.geronimo.util.jce.provider
Class JCERSAPrivateCrtKey

java.lang.Object
  extended by org.apache.geronimo.util.jce.provider.JCERSAPrivateKey
      extended by org.apache.geronimo.util.jce.provider.JCERSAPrivateCrtKey
All Implemented Interfaces:
Serializable, RSAKey, RSAPrivateCrtKey, RSAPrivateKey, Key, PrivateKey, PKCS12BagAttributeCarrier

public class JCERSAPrivateCrtKey
extends JCERSAPrivateKey
implements RSAPrivateCrtKey

A provider representation for a RSA private key, with CRT factors included.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.geronimo.util.jce.provider.JCERSAPrivateKey
modulus, privateExponent
 
Fields inherited from interface java.security.interfaces.RSAPrivateCrtKey
serialVersionUID
 
Method Summary
 boolean equals(Object o)
           
 BigInteger getCrtCoefficient()
          return the CRT coefficient.
 byte[] getEncoded()
          Return a PKCS8 representation of the key.
 String getFormat()
          return the encoding format we produce in getEncoded().
 BigInteger getPrimeExponentP()
          return the prime exponent for P.
 BigInteger getPrimeExponentQ()
          return the prime exponent for Q.
 BigInteger getPrimeP()
          return the prime P.
 BigInteger getPrimeQ()
          return the prime Q.
 BigInteger getPublicExponent()
          return the public exponent.
 String toString()
           
 
Methods inherited from class org.apache.geronimo.util.jce.provider.JCERSAPrivateKey
getAlgorithm, getBagAttribute, getBagAttributeKeys, getModulus, getPrivateExponent, setBagAttribute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.interfaces.RSAPrivateKey
getPrivateExponent
 
Methods inherited from interface java.security.Key
getAlgorithm
 
Methods inherited from interface java.security.interfaces.RSAKey
getModulus
 

Method Detail

getFormat

public String getFormat()
return the encoding format we produce in getEncoded().

Specified by:
getFormat in interface Key
Overrides:
getFormat in class JCERSAPrivateKey
Returns:
the encoding format we produce in getEncoded().

getEncoded

public byte[] getEncoded()
Return a PKCS8 representation of the key. The sequence returned represents a full PrivateKeyInfo object.

Specified by:
getEncoded in interface Key
Overrides:
getEncoded in class JCERSAPrivateKey
Returns:
a PKCS8 representation of the key.

getPublicExponent

public BigInteger getPublicExponent()
return the public exponent.

Specified by:
getPublicExponent in interface RSAPrivateCrtKey
Returns:
the public exponent.

getPrimeP

public BigInteger getPrimeP()
return the prime P.

Specified by:
getPrimeP in interface RSAPrivateCrtKey
Returns:
the prime P.

getPrimeQ

public BigInteger getPrimeQ()
return the prime Q.

Specified by:
getPrimeQ in interface RSAPrivateCrtKey
Returns:
the prime Q.

getPrimeExponentP

public BigInteger getPrimeExponentP()
return the prime exponent for P.

Specified by:
getPrimeExponentP in interface RSAPrivateCrtKey
Returns:
the prime exponent for P.

getPrimeExponentQ

public BigInteger getPrimeExponentQ()
return the prime exponent for Q.

Specified by:
getPrimeExponentQ in interface RSAPrivateCrtKey
Returns:
the prime exponent for Q.

getCrtCoefficient

public BigInteger getCrtCoefficient()
return the CRT coefficient.

Specified by:
getCrtCoefficient in interface RSAPrivateCrtKey
Returns:
the CRT coefficient.

equals

public boolean equals(Object o)
Overrides:
equals in class JCERSAPrivateKey

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.