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

Quick Search    Search Deep

gnu.javax.net.ssl.provider
Class JessieDHPrivateKey  view JessieDHPrivateKey download JessieDHPrivateKey.java

java.lang.Object
  extended bygnu.javax.net.ssl.provider.JessieDHPrivateKey
All Implemented Interfaces:
javax.crypto.interfaces.DHKey, javax.crypto.interfaces.DHPrivateKey, java.security.Key, java.security.PrivateKey, java.io.Serializable

class JessieDHPrivateKey
extends java.lang.Object
implements javax.crypto.interfaces.DHPrivateKey


Field Summary
private  javax.crypto.spec.DHParameterSpec params
           
private  java.math.BigInteger x
           
 
Fields inherited from interface javax.crypto.interfaces.DHPrivateKey
serialVersionUID
 
Constructor Summary
(package private) JessieDHPrivateKey(javax.crypto.spec.DHParameterSpec params, java.math.BigInteger x)
           
 
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.
 javax.crypto.spec.DHParameterSpec getParams()
          Returns the Diffie-Hellman parameters for this key, which includes the generator and the prime.
 java.math.BigInteger getX()
          Returns the private value x.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

params

private final javax.crypto.spec.DHParameterSpec params

x

private final java.math.BigInteger x
Constructor Detail

JessieDHPrivateKey

JessieDHPrivateKey(javax.crypto.spec.DHParameterSpec params,
                   java.math.BigInteger x)
Method Detail

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

getParams

public javax.crypto.spec.DHParameterSpec getParams()
Description copied from interface: javax.crypto.interfaces.DHKey
Returns the Diffie-Hellman parameters for this key, which includes the generator and the prime.

Specified by:
getParams in interface javax.crypto.interfaces.DHKey

getX

public java.math.BigInteger getX()
Description copied from interface: javax.crypto.interfaces.DHPrivateKey
Returns the private value x.

Specified by:
getX in interface javax.crypto.interfaces.DHPrivateKey

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()).