Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.jce.provider.pk
Class RSAPrivateCrtKeyCryptix  view RSAPrivateCrtKeyCryptix download RSAPrivateCrtKeyCryptix.java

java.lang.Object
  extended bycryptix.jce.provider.pk.RSAPrivateCrtKeyCryptix
All Implemented Interfaces:
java.security.Key, java.security.PrivateKey, java.security.interfaces.RSAKey, java.security.interfaces.RSAPrivateCrtKey, java.security.interfaces.RSAPrivateKey, java.io.Serializable

public final class RSAPrivateCrtKeyCryptix
extends java.lang.Object
implements java.security.interfaces.RSAPrivateCrtKey

Instances are immutable.

Version:
$Revision: 1.3 $

Field Summary
private  java.math.BigInteger crtCoefficient
           
private  java.math.BigInteger modulus
           
private  java.math.BigInteger primeExponentP
           
private  java.math.BigInteger primeExponentQ
           
private  java.math.BigInteger primeP
           
private  java.math.BigInteger primeQ
           
private  java.math.BigInteger privateExponent
           
private  java.math.BigInteger publicExponent
           
 
Fields inherited from interface java.security.interfaces.RSAPrivateCrtKey
serialVersionUID
 
Constructor Summary
RSAPrivateCrtKeyCryptix(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger primeP, java.math.BigInteger primeQ, java.math.BigInteger primeExponentP, java.math.BigInteger primeExponentQ, java.math.BigInteger crtCoefficient)
           
 
Method Summary
 java.lang.String getAlgorithm()
          This method returns the name of the algorithm for this key.
 java.math.BigInteger getCrtCoefficient()
          Returns the CRT coefficient
 byte[] getEncoded()
          This method returns the encoded form of the key.
 java.lang.String getFormat()
          This method returns the name of the encoding format for this key.
 java.math.BigInteger getModulus()
          Generates a modulus.
 java.math.BigInteger getPrimeExponentP()
          Returns the primeExponentP
 java.math.BigInteger getPrimeExponentQ()
          Returns the primeExponentQ
 java.math.BigInteger getPrimeP()
          Returns the primeP value
 java.math.BigInteger getPrimeQ()
          Returns the primeQ value
 java.math.BigInteger getPrivateExponent()
          Returns the private exponent value for this key
 java.math.BigInteger getPublicExponent()
          Returns the public exponent for this key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modulus

private final java.math.BigInteger modulus

publicExponent

private final java.math.BigInteger publicExponent

privateExponent

private final java.math.BigInteger privateExponent

primeP

private final java.math.BigInteger primeP

primeQ

private final java.math.BigInteger primeQ

primeExponentP

private final java.math.BigInteger primeExponentP

primeExponentQ

private final java.math.BigInteger primeExponentQ

crtCoefficient

private final java.math.BigInteger crtCoefficient
Constructor Detail

RSAPrivateCrtKeyCryptix

public RSAPrivateCrtKeyCryptix(java.math.BigInteger modulus,
                               java.math.BigInteger publicExponent,
                               java.math.BigInteger privateExponent,
                               java.math.BigInteger primeP,
                               java.math.BigInteger primeQ,
                               java.math.BigInteger primeExponentP,
                               java.math.BigInteger primeExponentQ,
                               java.math.BigInteger crtCoefficient)
Method Detail

getPublicExponent

public java.math.BigInteger getPublicExponent()
Description copied from interface: java.security.interfaces.RSAPrivateCrtKey
Returns the public exponent for this key

Specified by:
getPublicExponent in interface java.security.interfaces.RSAPrivateCrtKey

getPrimeP

public java.math.BigInteger getPrimeP()
Description copied from interface: java.security.interfaces.RSAPrivateCrtKey
Returns the primeP value

Specified by:
getPrimeP in interface java.security.interfaces.RSAPrivateCrtKey

getPrimeQ

public java.math.BigInteger getPrimeQ()
Description copied from interface: java.security.interfaces.RSAPrivateCrtKey
Returns the primeQ value

Specified by:
getPrimeQ in interface java.security.interfaces.RSAPrivateCrtKey

getPrimeExponentP

public java.math.BigInteger getPrimeExponentP()
Description copied from interface: java.security.interfaces.RSAPrivateCrtKey
Returns the primeExponentP

Specified by:
getPrimeExponentP in interface java.security.interfaces.RSAPrivateCrtKey

getPrimeExponentQ

public java.math.BigInteger getPrimeExponentQ()
Description copied from interface: java.security.interfaces.RSAPrivateCrtKey
Returns the primeExponentQ

Specified by:
getPrimeExponentQ in interface java.security.interfaces.RSAPrivateCrtKey

getCrtCoefficient

public java.math.BigInteger getCrtCoefficient()
Description copied from interface: java.security.interfaces.RSAPrivateCrtKey
Returns the CRT coefficient

Specified by:
getCrtCoefficient in interface java.security.interfaces.RSAPrivateCrtKey

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

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