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

Quick Search    Search Deep

cryptix.jce.provider.elgamal
Class ElGamalPrivateKeyCryptix  view ElGamalPrivateKeyCryptix download ElGamalPrivateKeyCryptix.java

java.lang.Object
  extended bycryptix.jce.provider.elgamal.ElGamalPrivateKeyCryptix
All Implemented Interfaces:
cryptix.jce.ElGamalKey, cryptix.jce.ElGamalPrivateKey, java.security.Key, java.security.PrivateKey, java.io.Serializable

final class ElGamalPrivateKeyCryptix
extends java.lang.Object
implements cryptix.jce.ElGamalPrivateKey

Version:
$Revision: 1.2 $

Field Summary
private  cryptix.jce.ElGamalParams params
           
private  java.math.BigInteger x
           
 
Fields inherited from interface java.security.PrivateKey
serialVersionUID
 
Constructor Summary
(package private) ElGamalPrivateKeyCryptix(java.math.BigInteger x, cryptix.jce.ElGamalParams params)
           
 
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.
 cryptix.jce.ElGamalParams getParams()
           
 java.math.BigInteger getX()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

private final java.math.BigInteger x

params

private final cryptix.jce.ElGamalParams params
Constructor Detail

ElGamalPrivateKeyCryptix

ElGamalPrivateKeyCryptix(java.math.BigInteger x,
                         cryptix.jce.ElGamalParams params)
Method Detail

getX

public java.math.BigInteger getX()
Specified by:
getX in interface cryptix.jce.ElGamalPrivateKey

getParams

public cryptix.jce.ElGamalParams getParams()
Specified by:
getParams in interface cryptix.jce.ElGamalKey

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