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

Quick Search    Search Deep

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

java.lang.Object
  extended bycryptix.jce.provider.pk.RSAPublicKeyCryptix
All Implemented Interfaces:
java.security.Key, java.security.PublicKey, java.security.interfaces.RSAKey, java.security.interfaces.RSAPublicKey, java.io.Serializable

public final class RSAPublicKeyCryptix
extends java.lang.Object
implements java.security.interfaces.RSAPublicKey

Version:
$Revision: 1.4 $

Field Summary
private  java.math.BigInteger e
           
private  java.math.BigInteger n
           
 
Fields inherited from interface java.security.interfaces.RSAPublicKey
serialVersionUID
 
Constructor Summary
RSAPublicKeyCryptix(java.math.BigInteger n, java.math.BigInteger e)
           
 
Method Summary
 java.lang.String getAlgorithm()
          This method returns the name of the algorithm for this key.
 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 getPublicExponent()
          Returns the public exponent value for this key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

n

private final java.math.BigInteger n

e

private final java.math.BigInteger e
Constructor Detail

RSAPublicKeyCryptix

public RSAPublicKeyCryptix(java.math.BigInteger n,
                           java.math.BigInteger e)
Method Detail

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

getPublicExponent

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

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

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