IT. Expert System.

Android Reference

KSPrivateKeyEntryTest


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

Class KSPrivateKeyEntryTest

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


  • public class KSPrivateKeyEntryTest
    extends TestCase
    Tests for KeyStore.PrivateKeyEntry class constructor and methods
    • Method Summary

      Methods
      Modifier and Type Method and Description
      static Test suite()
      void testGetCertificate()
      Test for getCertificate() method Assertion: returns end Certificate (with 0 index in chain)
      void testGetCertificateChain()
      Test for getCertificateChain() method Assertion: returns array of the Certificates corresponding to chain
      void testGetPrivateKey()
      Test for getPrivateKey() method Assertion: returns PrivateKey object
      void testPrivateKeyEntry01()
      Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) constructor Assertion: throws NullPointerException when privateKey is null
      void testPrivateKeyEntry02()
      Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) constructor Assertion: throws NullPointerException when chain is null and throws IllegalArgumentException when chain length is 0
      void testPrivateKeyEntry03()
      Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) constructor Assertion: throws IllegalArgumentException when chain contains certificates of different types
      void testPrivateKeyEntry04()
      Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) constructor Assertion: throws IllegalArgumentException when algorithm of privateKey does not match the algorithm of PublicKey in the end certificate (with 0 index)
      void testToString()
      Test for toString() method Assertion: returns non null String
    • Constructor Detail

      • KSPrivateKeyEntryTest

        public KSPrivateKeyEntryTest()
    • Method Detail

      • testPrivateKeyEntry01

        public void testPrivateKeyEntry01()
        Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) constructor Assertion: throws NullPointerException when privateKey is null
      • testPrivateKeyEntry02

        public void testPrivateKeyEntry02()
        Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) constructor Assertion: throws NullPointerException when chain is null and throws IllegalArgumentException when chain length is 0
      • testPrivateKeyEntry03

        public void testPrivateKeyEntry03()
        Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) constructor Assertion: throws IllegalArgumentException when chain contains certificates of different types
      • testPrivateKeyEntry04

        public void testPrivateKeyEntry04()
        Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) constructor Assertion: throws IllegalArgumentException when algorithm of privateKey does not match the algorithm of PublicKey in the end certificate (with 0 index)
      • testGetPrivateKey

        public void testGetPrivateKey()
        Test for getPrivateKey() method Assertion: returns PrivateKey object
      • testGetCertificateChain

        public void testGetCertificateChain()
        Test for getCertificateChain() method Assertion: returns array of the Certificates corresponding to chain
      • testGetCertificate

        public void testGetCertificate()
        Test for getCertificate() method Assertion: returns end Certificate (with 0 index in chain)
      • testToString

        public void testToString()
        Test for toString() method Assertion: returns non null String
      • suite

        public static Test suite()


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: 1016 / . Delta: 0.00871 с