IT. Expert System.

Android Reference

KeyAgreementTest


org.apache.harmony.crypto.tests.javax.crypto

Class KeyAgreementTest

  • java.lang.Object
    • TestCase
      • org.apache.harmony.crypto.tests.javax.crypto.KeyAgreementTest


  • public class KeyAgreementTest
    extends TestCase
    Tests for KeyAgreement constructor and methods
    • Method Summary

      Methods
      Modifier and Type Method and Description
      static String getDefAlg()
      void test_constructor()
      void test_generateSecret$BI()
      void test_generateSecretLjava_lang_String()
      void test_getAlgorithm()
      void test_getProvider()
      void test_initLjava_security_KeyLjava_security_SecureRandom()
      void testDoPhase()
      Test for doPhase(Key key, boolean lastPhase) method Assertion: throws InvalidKeyException if key is not appropriate
      void testGenerateSecret03()
      Test for the methods: init(Key key) generateSecret() generateSecret(byte[] sharedsecret, int offset) generateSecret(String algorithm) Assertions: initializes KeyAgreement; returns sharedSecret; puts sharedsecret in buffer and return numbers of bytes; returns SecretKey object
      void testGetInstanceString01()
      Test for getInstance(String algorithm) method Assertions: throws NullPointerException when algorithm is null throws NoSuchAlgorithmException when algorithm isnot available
      void testGetInstanceString02()
      Test for getInstance(String algorithm) method Assertions: returns KeyAgreement object
      void testGetInstanceStringProvider01()
      Test for getInstance(String algorithm, Provider provider) method Assertions: throws NullPointerException when algorithm is null throws NoSuchAlgorithmException when algorithm isnot available
      void testGetInstanceStringProvider02()
      Test for getInstance(String algorithm, Provider provider) method Assertions: throws IllegalArgumentException when provider is null
      void testGetInstanceStringProvider03()
      Test for getInstance(String algorithm, Provider provider) method Assertions: returns KeyAgreement object
      void testGetInstanceStringString01()
      Test for getInstance(String algorithm, String provider) method Assertions: throws NullPointerException when algorithm is null throws NoSuchAlgorithmException when algorithm is not available
      void testGetInstanceStringString02()
      Test for getInstance(String algorithm, String provider) method Assertions: throws IllegalArgumentException when provider is null or empty throws NoSuchProviderException when provider has not be configured
      void testGetInstanceStringString03()
      Test for getInstance(String algorithm, String provider) method Assertions: returns KeyAgreement object
      void testInit01()
      Test for the methods init(Key key) init(Key key, SecureRandom random) init(Key key, AlgorithmParameterSpec params) init(Key key, AlgorithmParameterSpec params, SecureRandom random) Assertion: throws InvalidKeyException when key is inappropriate
      void testInit02()
      Test for the methods init(Key key, AlgorithmParameterSpec params) init(Key key, AlgorithmParameterSpec params, SecureRandom random) Assertion: throws AlgorithmParameterException when params are inappropriate
      void testInit03()
      Test for the methods: init(Key key) init(Key key, SecureRandom random) generateSecret() Assertions: initializes KeyAgreement and returns byte array
      void testInit04()
      Test for the methods: init(Key key, AlgorithmParameterSpec params) init(Key key, AlgorithmParameterSpec params, SecureRandom random) generateSecret() Assertions: initializes KeyAgreement and returns byte array


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 584 / 158800345. Delta: 0.03844 с