com.ibm.crypto.fips.provider

Class DHParameters

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


  • public final class DHParameters
    extends java.security.AlgorithmParametersSpi
    This class implements the parameter set used by the Diffie-Hellman key agreement as defined in the PKCS #3 standard.
    • Field Summary

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

      Constructors 
      Constructor and Description
      DHParameters() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected byte[] engineGetEncoded() 
      protected byte[] engineGetEncoded(java.lang.String encodingMethod) 
      protected java.security.spec.AlgorithmParameterSpec engineGetParameterSpec(java.lang.Class paramSpec) 
      protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec) 
      protected void engineInit(byte[] params) 
      protected void engineInit(byte[] params, java.lang.String decodingMethod) 
      protected java.lang.String engineToString() 
      protected byte[] internalGetEncoded() 
      protected java.security.spec.AlgorithmParameterSpec internalGetParameterSpec(java.lang.Class paramSpec) 
      protected void internalInit(java.security.spec.AlgorithmParameterSpec paramSpec) 
      protected void internalInit(byte[] params) 
      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
      • g

        protected java.math.BigInteger g
    • Constructor Detail

      • DHParameters

        public DHParameters()
    • 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
      • internalInit

        protected void internalInit(java.security.spec.AlgorithmParameterSpec paramSpec)
                             throws java.security.spec.InvalidParameterSpecException
        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
      • internalInit

        protected void internalInit(byte[] params)
                             throws java.io.IOException
        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 java.security.spec.AlgorithmParameterSpec engineGetParameterSpec(java.lang.Class paramSpec)
                                                                            throws java.security.spec.InvalidParameterSpecException
        Specified by:
        engineGetParameterSpec in class java.security.AlgorithmParametersSpi
        Throws:
        java.security.spec.InvalidParameterSpecException
      • internalGetParameterSpec

        protected java.security.spec.AlgorithmParameterSpec internalGetParameterSpec(java.lang.Class paramSpec)
                                                                              throws java.security.spec.InvalidParameterSpecException
        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
      • internalGetEncoded

        protected byte[] internalGetEncoded()
                                     throws java.io.IOException
        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
      • 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.