Class KeyAgreementSpi

    • Constructor Detail

      • KeyAgreementSpi

        public KeyAgreementSpi()
    • Method Detail

      • engineInit

        protected void engineInit​(java.security.Key key,
                                  java.security.SecureRandom secureRandom)
                           throws java.security.InvalidKeyException
        Specified by:
        engineInit in class javax.crypto.KeyAgreementSpi
        Throws:
        java.security.InvalidKeyException
      • engineInit

        protected void engineInit​(java.security.Key key,
                                  java.security.spec.AlgorithmParameterSpec algorithmParameterSpec,
                                  java.security.SecureRandom secureRandom)
                           throws java.security.InvalidKeyException,
                                  java.security.InvalidAlgorithmParameterException
        Specified by:
        engineInit in class javax.crypto.KeyAgreementSpi
        Throws:
        java.security.InvalidKeyException
        java.security.InvalidAlgorithmParameterException
      • engineDoPhase

        protected java.security.Key engineDoPhase​(java.security.Key key,
                                                  boolean lastPhase)
                                           throws java.security.InvalidKeyException,
                                                  java.lang.IllegalStateException
        Specified by:
        engineDoPhase in class javax.crypto.KeyAgreementSpi
        Throws:
        java.security.InvalidKeyException
        java.lang.IllegalStateException
      • engineGenerateSecret

        protected byte[] engineGenerateSecret()
                                       throws java.lang.IllegalStateException
        Overrides:
        engineGenerateSecret in class BaseAgreementSpi
        Throws:
        java.lang.IllegalStateException
      • engineGenerateSecret

        protected int engineGenerateSecret​(byte[] bytes,
                                           int offset)
                                    throws java.lang.IllegalStateException,
                                           javax.crypto.ShortBufferException
        Overrides:
        engineGenerateSecret in class BaseAgreementSpi
        Throws:
        java.lang.IllegalStateException
        javax.crypto.ShortBufferException