Class DSAPublicKeyImpl
java.lang.Object
org.apache.harmony.security.PublicKeyImpl
org.apache.harmony.security.provider.crypto.DSAPublicKeyImpl
- All Implemented Interfaces:
Serializable,DSAKey,DSAPublicKey,Key,PublicKey
public class DSAPublicKeyImpl extends PublicKeyImpl implements DSAPublicKey
The class provides DSAPublicKey functionality by extending a class implementing PublicKey
and implementing methods defined in both interfaces, DSAKey and DSAPublicKey
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DSAPublicKeyImpl(DSAPublicKeySpec keySpec)Creates object from DSAPublicKeySpec.DSAPublicKeyImpl(X509EncodedKeySpec keySpec)Creates object from X509EncodedKeySpec. -
Method Summary
Modifier and Type Method Description DSAParamsgetParams()Returns the DSA key parameters.BigIntegergetY()Returns the public key valuey.Methods inherited from class org.apache.harmony.security.PublicKeyImpl
getAlgorithm, getEncoded, getFormat, setAlgorithm, setEncodingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
-
Constructor Details
-
DSAPublicKeyImpl
Creates object from DSAPublicKeySpec.- Parameters:
keySpec- - a DSAPublicKeySpec object
-
DSAPublicKeyImpl
Creates object from X509EncodedKeySpec.- Parameters:
keySpec- - a X509EncodedKeySpec object- Throws:
InvalidKeySpecException- - if key data cannot be obtain from encoded format
-
-
Method Details
-
getY
Description copied from interface:DSAPublicKeyReturns the public key valuey.- Specified by:
getYin interfaceDSAPublicKey- Returns:
- a value of a public key (y).
-
getParams
Description copied from interface:DSAKeyReturns the DSA key parameters.
-