IT. Expert System.

Android Reference

KeyPairGenerator1Test


org.apache.harmony.security.tests.java.security

Class KeyPairGenerator1Test

  • java.lang.Object
    • TestCase
      • org.apache.harmony.security.tests.java.security.KeyPairGenerator1Test


  • public class KeyPairGenerator1Test
    extends TestCase
    Tests for KeyPairGenerator class constructors and methods.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      protected KeyPairGenerator[] createKPGen()
      void testKeyPairGenerator01()
      Test for getInstance(String algorithm) method Assertion: throws NullPointerException when algorithm is null throws NoSuchAlgorithmException when algorithm is incorrect;
      void testKeyPairGenerator02()
      Test for getInstance(String algorithm) method Assertion: returns KeyPairGenerator object
      void testKeyPairGenerator03()
      Test for getInstance(String algorithm, String provider) method Assertion: throws IllegalArgumentException when provider is null or empty
      void testKeyPairGenerator04()
      Test for getInstance(String algorithm, String provider) method Assertion: throws NoSuchProviderException when provider is not available
      void testKeyPairGenerator05()
      Test for getInstance(String algorithm, String provider) method Assertion: throws NoSuchAlgorithmException when algorithm is not available throws NullPointerException when algorithm is null throws NoSuchAlgorithmException when algorithm is incorrect;
      void testKeyPairGenerator06()
      Test for getInstance(String algorithm, String provider) method Assertion: returns KeyPairGenerator object
      void testKeyPairGenerator07()
      Test for getInstance(String algorithm, Provider provider) method Assertion: throws IllegalArgumentException when provider is null
      void testKeyPairGenerator08()
      Test for getInstance(String algorithm, Provider provider) method Assertion: throws NullPointerException when algorithm is null throws NoSuchAlgorithmException when algorithm is incorrect;
      void testKeyPairGenerator09()
      Test for getInstance(String algorithm, Provider provider) method Assertion: returns KeyPairGenerator object
      void testKeyPairGenerator10()
      Test for generateKeyPair() and genKeyPair() methods Assertion: KeyPairGenerator was initialized before the invocation of these methods
      void testKeyPairGenerator11()
      Test for methods: initialize(int keysize) initialize(int keysize, SecureRandom random) initialize(AlgorithmParameterSpec param) initialize(AlgorithmParameterSpec param, SecureRandom random) Assertion: throws InvalidParameterException or InvalidAlgorithmParameterException when parameters keysize or param are incorrect
      void testKeyPairGenerator12()
      Test for methods: initialize(int keysize) initialize(int keysize, SecureRandom random) initialize(AlgorithmParameterSpec param) initialize(AlgorithmParameterSpec param, SecureRandom random) generateKeyPair() genKeyPair() Assertion: throws InvalidParameterException or InvalidAlgorithmParameterException when parameters keysize or param are incorrect Assertion: generateKeyPair() and genKeyPair() return null KeyPair Additional class MyKeyPairGenerator1 is used
      void testKeyPairGenerator13()
      Test for methods: initialize(int keysize) initialize(int keysize, SecureRandom random) initialize(AlgorithmParameterSpec param) initialize(AlgorithmParameterSpec param, SecureRandom random) generateKeyPair() genKeyPair() Assertion: initialize(int ...) throws InvalidParameterException when keysize in incorrect Assertion: initialize(AlgorithmParameterSpec ...)throws UnsupportedOperationException Assertion: generateKeyPair() and genKeyPair() return not null KeyPair Additional class MyKeyPairGenerator2 is used


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: 12782 / 248373417. Delta: 0.03836 с