Class Overview
An X.509 public key for the Digital Signature Algorithm.
The difference between DSAPublicKeyImpl and DSAPublicKey is that
DSAPublicKeyImpl calls writeReplace with KeyRep, and DSAPublicKey
calls writeObject.
See the comments in DSAKeyFactory, 4532506, and 6232513.
Summary
[Expand]
Inherited Methods |
From class
sun.security.provider.DSAPublicKey
DSAParams
|
getParams()
Returns the DSA parameters associated with this key, or null if the
parameters could not be parsed.
|
BigInteger
|
getY()
Get the raw public value, y, without the parameters.
|
void
|
parseKeyBits()
Parse the key bits.
|
String
|
toString()
Returns a string representation of the object.
|
|
From class
sun.security.x509.X509Key
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
java.security.Key
abstract
String
|
getAlgorithm()
Returns the standard algorithm name for this key.
|
abstract
byte[]
|
getEncoded()
Returns the key in its primary encoding format, or null
if this key does not support encoding.
|
abstract
String
|
getFormat()
Returns the name of the primary encoding format of this key,
or null if this key does not support encoding.
|
|
From interface
java.security.interfaces.DSAKey
|
From interface
java.security.interfaces.DSAPublicKey
|
Public Constructors
Make a DSA public key out of a public key and three parameters.
The p, q, and g parameters may be null, but if so, parameters will need
to be supplied from some other source before this key can be used in
cryptographic operations. PKIX RFC2459bis explicitly allows DSA public
keys without parameters, where the parameters are provided in the
issuer's DSA public key.
Parameters
y
| the actual key bits |
p
| DSA parameter p, may be null if all of p, q, and g are null. |
q
| DSA parameter q, may be null if all of p, q, and g are null. |
g
| DSA parameter g, may be null if all of p, q, and g are null.
|
public
DSAPublicKeyImpl
(byte[] encoded)
Make a DSA public key from its DER encoding (X.509).
Protected Methods
protected
Object
writeReplace
()