Class DSAParameters


  • public class DSAParameters
    extends java.security.AlgorithmParametersSpi
    This class implements the parameter set used by the Digital Signature Algorithm as specified in the FIPS 186 standard.
    Since:
    JDK1.2
    Version:
    1.8, 97/12/10
    Author:
    Jan Luehe
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.math.BigInteger g  
      protected java.math.BigInteger p  
      protected java.math.BigInteger q  
    • Constructor Summary

      Constructors 
      Constructor Description
      DSAParameters()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected byte[] engineGetEncoded()  
      protected byte[] engineGetEncoded​(java.lang.String encodingMethod)  
      protected <T extends java.security.spec.AlgorithmParameterSpec>
      T
      engineGetParameterSpec​(java.lang.Class<T> paramSpec)  
      protected void engineInit​(byte[] params)  
      protected void engineInit​(byte[] params, java.lang.String decodingMethod)  
      protected void engineInit​(java.security.spec.AlgorithmParameterSpec paramSpec)  
      protected java.lang.String engineToString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • p

        protected java.math.BigInteger p
      • q

        protected java.math.BigInteger q
      • g

        protected java.math.BigInteger g
    • Constructor Detail

      • DSAParameters

        public DSAParameters()
    • Method Detail

      • engineInit

        protected void engineInit​(java.security.spec.AlgorithmParameterSpec paramSpec)
                           throws java.security.spec.InvalidParameterSpecException
        Specified by:
        engineInit in class java.security.AlgorithmParametersSpi
        Throws:
        java.security.spec.InvalidParameterSpecException
      • engineInit

        protected void engineInit​(byte[] params)
                           throws java.io.IOException
        Specified by:
        engineInit in class java.security.AlgorithmParametersSpi
        Throws:
        java.io.IOException
      • engineInit

        protected void engineInit​(byte[] params,
                                  java.lang.String decodingMethod)
                           throws java.io.IOException
        Specified by:
        engineInit in class java.security.AlgorithmParametersSpi
        Throws:
        java.io.IOException
      • engineGetParameterSpec

        protected <T extends java.security.spec.AlgorithmParameterSpec> T engineGetParameterSpec​(java.lang.Class<T> paramSpec)
                                                                                          throws java.security.spec.InvalidParameterSpecException
        Specified by:
        engineGetParameterSpec in class java.security.AlgorithmParametersSpi
        Throws:
        java.security.spec.InvalidParameterSpecException
      • engineGetEncoded

        protected byte[] engineGetEncoded()
                                   throws java.io.IOException
        Specified by:
        engineGetEncoded in class java.security.AlgorithmParametersSpi
        Throws:
        java.io.IOException
      • engineGetEncoded

        protected byte[] engineGetEncoded​(java.lang.String encodingMethod)
                                   throws java.io.IOException
        Specified by:
        engineGetEncoded in class java.security.AlgorithmParametersSpi
        Throws:
        java.io.IOException
      • engineToString

        protected java.lang.String engineToString()
        Specified by:
        engineToString in class java.security.AlgorithmParametersSpi