IT. Expert System.

Android Reference

SecureRandom2Test


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

Class SecureRandom2Test

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


  • public class SecureRandom2Test
    extends TestCase
    • Constructor Detail

      • SecureRandom2Test

        public SecureRandom2Test()
    • Method Detail

      • testGetProvider

        public void testGetProvider()
      • test_Constructor

        public void test_Constructor()
        java.security.SecureRandom#SecureRandom()
      • test_Constructor$B

        public void test_Constructor$B()
        java.security.SecureRandom#SecureRandom(byte[])
      • test_ConstructorLjava_security_SecureRandomSpi_java_security_Provider

        public void test_ConstructorLjava_security_SecureRandomSpi_java_security_Provider()
        java.security.SecureRandom#SecureRandom(java.security.SecureRandomSpi, java.security.Provider)
      • test_generateSeedI

        public void test_generateSeedI()
        java.security.SecureRandom#generateSeed(int)
      • test_getInstanceLjava_lang_String

        public void test_getInstanceLjava_lang_String()
        java.security.SecureRandom#getInstance(java.lang.String)
      • test_getInstanceLjava_lang_StringLjava_lang_String

        public void test_getInstanceLjava_lang_StringLjava_lang_String()
        java.security.SecureRandom#getInstance(java.lang.String, java.lang.String)
      • test_getSeedI

        public void test_getSeedI()
        java.security.SecureRandom#getSeed(int)
      • test_nextBytes$B

        public void test_nextBytes$B()
        java.security.SecureRandom#nextBytes(byte[])
      • test_setSeed$B

        public void test_setSeed$B()
        java.security.SecureRandom#setSeed(byte[])
      • test_setSeedJ

        public void test_setSeedJ()
        java.security.SecureRandom#setSeed(long)
      • test_getAlgorithm

        public void test_getAlgorithm()
        java.security.SecureRandom#getAlgorithm()
      • testSameSeedGeneratesSameResults

        public void testSameSeedGeneratesSameResults()
                                              throws Exception
        Two SecureRandom objects, created with SecureRandom.getInstance(String) and initialized before use with the same seed, should return the same results.

        In the future, it may sense to disallow seeding SecureRandom, as it tends to be error prone and open up security holes. See SecureRandom for more details about insecure seeding. Note that this only works with the Harmony "Crypto" provider.

        Throws:
        Exception
      • testAlwaysSameValueWithSameSeed

        public void testAlwaysSameValueWithSameSeed()
                                             throws Exception
        Assert that a SecureRandom object seeded from a constant seed always returns the same value, even across VM restarts. Future versions of Android may change the implementation of SHA1PRNG, so users of SecureRandom should not assume the same seed will always produce the same value. This test is not a guarantee of future compatibility. In fact, this test only works with the Harmony "Crypto" provider.
        Throws:
        Exception


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: 2506 / . Delta: 0.01851 с