com.ibm.crypto.fips.provider

Class DSAParameters

  • java.lang.Object
    • java.security.AlgorithmParametersSpi
      • com.ibm.crypto.fips.provider.DSAParameters


  • public final class DSAParameters
    extends java.security.AlgorithmParametersSpi
    This class implements Digital Signature Algorithm paremters specified by com.ibm.crypto.fips.provider 186 standard.
    • Field Summary

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

      Constructors 
      Constructor and Description
      DSAParameters() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected byte[] engineGetEncoded()
      Returns the parameters in encoded bytes.
      protected byte[] engineGetEncoded(java.lang.String encodingMethod)
      Returns the parameters in encoded bytes with encoding method specified.
      protected java.security.spec.AlgorithmParameterSpec engineGetParameterSpec(java.lang.Class paramSpec)
      Return the parameter spec used by this parameter instance.
      protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
      Initialize the DSAParameters by a DSAParameterSpec
      protected void engineInit(byte[] params)
      Initialize the DSAParameters by encoded bytes
      protected void engineInit(byte[] params, java.lang.String decodingMethod)
      Initialize the DSAParameters by encoded bytes with the specified decoding method.
      protected java.lang.String engineToString() 
      protected byte[] internalGetEncoded()
      Returns the parameters in encoded bytes.
      protected byte[] internalGetEncoded(java.lang.String encodingMethod)
      Returns the parameters in encoded bytes with encoding method specified.
      protected java.security.spec.AlgorithmParameterSpec internalGetParameterSpec(java.lang.Class paramSpec)
      Return the parameter spec used by this parameter instance.
      protected void internalInit(java.security.spec.AlgorithmParameterSpec paramSpec)
      Initialize the DSAParameters by a DSAParameterSpec
      protected void internalInit(byte[] params)
      Initialize the DSAParameters by encoded bytes
      protected void internalInit(byte[] params, java.lang.String decodingMethod)
      Initialize the DSAParameters by encoded bytes with the specified decoding method.
      protected java.lang.String internalToString() 
      • 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
        Initialize the DSAParameters by a DSAParameterSpec
        Specified by:
        engineInit in class java.security.AlgorithmParametersSpi
        Parameters:
        paramSpec - the DSA algorithm parameter spec for this instance.
        Throws:
        FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
        java.security.spec.InvalidParameterSpecException
      • internalInit

        protected void internalInit(java.security.spec.AlgorithmParameterSpec paramSpec)
                             throws java.security.spec.InvalidParameterSpecException
        Initialize the DSAParameters by a DSAParameterSpec
        Parameters:
        paramSpec - the DSA algorithm parameter spec for this instance.
        Throws:
        java.security.spec.InvalidParameterSpecException
      • engineInit

        protected void engineInit(byte[] params)
                           throws java.io.IOException
        Initialize the DSAParameters by encoded bytes
        Specified by:
        engineInit in class java.security.AlgorithmParametersSpi
        Parameters:
        params - the encoded bytes of the parameters.
        Throws:
        FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
        java.io.IOException
      • internalInit

        protected void internalInit(byte[] params)
                             throws java.io.IOException
        Initialize the DSAParameters by encoded bytes
        Parameters:
        params - the encoded bytes of the parameters.
        Throws:
        java.io.IOException
      • engineInit

        protected void engineInit(byte[] params,
                      java.lang.String decodingMethod)
                           throws java.io.IOException
        Initialize the DSAParameters by encoded bytes with the specified decoding method.
        Specified by:
        engineInit in class java.security.AlgorithmParametersSpi
        Parameters:
        params - the encoded bytes of the parameters.
        decodingMethod - the decoding method to be used.
        Throws:
        FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
        java.io.IOException
      • internalInit

        protected void internalInit(byte[] params,
                        java.lang.String decodingMethod)
                             throws java.io.IOException
        Initialize the DSAParameters by encoded bytes with the specified decoding method.
        Parameters:
        params - the encoded bytes of the parameters.
        decodingMethod - the decoding method to be used.
        Throws:
        java.io.IOException
      • engineGetParameterSpec

        protected java.security.spec.AlgorithmParameterSpec engineGetParameterSpec(java.lang.Class paramSpec)
                                                                            throws java.security.spec.InvalidParameterSpecException
        Return the parameter spec used by this parameter instance.
        Specified by:
        engineGetParameterSpec in class java.security.AlgorithmParametersSpi
        Parameters:
        paramSpec - the parameter spec class to be returned
        Returns:
        AlgorithmParameterSpec the newly generated parameterSpec
        Throws:
        FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
        java.security.spec.InvalidParameterSpecException
      • internalGetParameterSpec

        protected java.security.spec.AlgorithmParameterSpec internalGetParameterSpec(java.lang.Class paramSpec)
                                                                              throws java.security.spec.InvalidParameterSpecException
        Return the parameter spec used by this parameter instance.
        Parameters:
        paramSpec - the parameter spec class to be returned
        Returns:
        AlgorithmParameterSpec the newly generated parameterSpec
        Throws:
        java.security.spec.InvalidParameterSpecException
      • engineGetEncoded

        protected byte[] engineGetEncoded()
                                   throws java.io.IOException
        Returns the parameters in encoded bytes.
        Specified by:
        engineGetEncoded in class java.security.AlgorithmParametersSpi
        Returns:
        byte[] the encoded parameters
        Throws:
        FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
        java.io.IOException
      • internalGetEncoded

        protected byte[] internalGetEncoded()
                                     throws java.io.IOException
        Returns the parameters in encoded bytes.
        Returns:
        byte[] the encoded parameters
        Throws:
        java.io.IOException
      • engineGetEncoded

        protected byte[] engineGetEncoded(java.lang.String encodingMethod)
                                   throws java.io.IOException
        Returns the parameters in encoded bytes with encoding method specified.
        Specified by:
        engineGetEncoded in class java.security.AlgorithmParametersSpi
        Returns:
        byte[] encoded parameters.
        Throws:
        FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
        java.io.IOException
      • internalGetEncoded

        protected byte[] internalGetEncoded(java.lang.String encodingMethod)
                                     throws java.io.IOException
        Returns the parameters in encoded bytes with encoding method specified.
        Returns:
        byte[] encoded parameters.
        Throws:
        FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
        java.io.IOException
      • engineToString

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

        protected java.lang.String internalToString()
© Portions Copyright 2003, 2014, 2015, 2016 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2014 Oracle and/or its affiliates. All rights reserved.