public class DSAPublicKeyImpl extends PublicKeyImpl implements DSAPublicKey
Constructor and Description |
---|
DSAPublicKeyImpl(DSAPublicKeySpec keySpec)
Creates object from DSAPublicKeySpec.
|
DSAPublicKeyImpl(X509EncodedKeySpec keySpec)
Creates object from X509EncodedKeySpec.
|
Modifier and Type | Method and Description |
---|---|
DSAParams |
getParams()
Returns the DSA key parameters.
|
BigInteger |
getY()
Returns the public key value
y . |
getAlgorithm, getEncoded, getFormat, setAlgorithm, setEncoding
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm, getEncoded, getFormat
public DSAPublicKeyImpl(DSAPublicKeySpec keySpec)
keySpec
- - a DSAPublicKeySpec objectpublic DSAPublicKeyImpl(X509EncodedKeySpec keySpec) throws InvalidKeySpecException
keySpec
- - a X509EncodedKeySpec objectInvalidKeySpecException
- - if key data cannot be obtain from encoded formatpublic BigInteger getY()
DSAPublicKey
y
.getY
in interface DSAPublicKey