IT. Expert System.

Android Reference

KeyPairTest


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

Class KeyPairTest

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


  • public class KeyPairTest
    extends TestCase
    Tests for fields and methods of class KeyPair
    • Constructor Summary

      Constructors
      Constructor and Description
      KeyPairTest()
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void testGetPrivate01()
      Test #1 for getPrivate() method
      Assertion: returns private key (null in this case)
      void testGetPrivate02()
      Test #2 for getPrivate() method
      Assertion: returns private key (valid private key in this case)
      void testGetPublic01()
      Test #1 for getPublic() method
      Assertion: returns public key (null in this case)
      void testGetPublic02()
      Test #2 for getPublic() method
      Assertion: returns public key (valid public key in this case)
      void testKeyPair01()
      Test #1 for KeyPair(PublicKey, PrivateKey) constructor
      Assertion: creates new KeyPair instance using valid parameters (both null)
      void testKeyPair02()
      Test #2 for KeyPair(PublicKey, PrivateKey) constructor
      Assertion: creates new KeyPair instance using valid parameters (both valid keys)
    • Constructor Detail

      • KeyPairTest

        public KeyPairTest()
    • Method Detail

      • testKeyPair01

        public final void testKeyPair01()
        Test #1 for KeyPair(PublicKey, PrivateKey) constructor
        Assertion: creates new KeyPair instance using valid parameters (both null)
      • testKeyPair02

        public final void testKeyPair02()
                                 throws InvalidKeySpecException
        Test #2 for KeyPair(PublicKey, PrivateKey) constructor
        Assertion: creates new KeyPair instance using valid parameters (both valid keys)
        Throws:
        InvalidKeySpecException
      • testGetPrivate01

        public final void testGetPrivate01()
        Test #1 for getPrivate() method
        Assertion: returns private key (null in this case)
      • testGetPublic01

        public final void testGetPublic01()
        Test #1 for getPublic() method
        Assertion: returns public key (null in this case)


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: 3321 / . Delta: 0.01944 с