com.ibm.crypto.fips.provider
Class DSAPublicKey

java.lang.Object
  |
  +--com.ibm.security.x509.X509Key
        |
        +--com.ibm.crypto.fips.provider.DSAPublicKey
All Implemented Interfaces:
java.security.interfaces.DSAKey, java.security.interfaces.DSAPublicKey, java.security.Key, java.security.PublicKey, java.io.Serializable

public final class DSAPublicKey
extends com.ibm.security.x509.X509Key
implements java.security.interfaces.DSAPublicKey, java.io.Serializable

This class represents an X.509 public key for the DSA Algorithm.

Version:
1.00, 07/20/99
Author:
Joyce Leung
See Also:
Serialized Form

Fields inherited from class com.ibm.security.x509.X509Key
algid, encodedKey, key
 
Fields inherited from interface java.security.interfaces.DSAPublicKey
serialVersionUID
 
Method Summary
protected  void finalize()
          This function zeroizes the key so that it isn't in memory when GC is done.
 java.security.interfaces.DSAParams getParams()
          Return the DSA parameters for the receiver.
 java.math.BigInteger getY()
          Return the value of the public key.
protected  void parseKeyBits()
           
 java.lang.String toString()
           
 void zeroize()
          This function zeroizes the key so that it isn't in memory
 
Methods inherited from class com.ibm.security.x509.X509Key
decode, decode, encode, encode, equals, getAlgorithm, getAlgorithmId, getEncoded, getFormat, getKey, hashCode, parse, parse, read, readBASE64, setKey, write, writeBASE64
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
 

Method Detail

getY

public java.math.BigInteger getY()
Return the value of the public key.
Specified by:
getY in interface java.security.interfaces.DSAPublicKey
Parameters:
the - value of y

getParams

public java.security.interfaces.DSAParams getParams()
Return the DSA parameters for the receiver.
Specified by:
getParams in interface java.security.interfaces.DSAKey
Returns:
DSAParams the DSA parameters of this instance

parseKeyBits

protected void parseKeyBits()
                     throws java.security.InvalidKeyException
Overrides:
parseKeyBits in class com.ibm.security.x509.X509Key

toString

public java.lang.String toString()
Overrides:
toString in class com.ibm.security.x509.X509Key

zeroize

public void zeroize()
This function zeroizes the key so that it isn't in memory

finalize

protected void finalize()
This function zeroizes the key so that it isn't in memory when GC is done.
Overrides:
finalize in class java.lang.Object