Android Reference
PBEKeySpecTest
org.apache.harmony.crypto.tests.javax.crypto.spec
Class PBEKeySpecTest
- java.lang.Object
-
- TestCase
-
- org.apache.harmony.crypto.tests.javax.crypto.spec.PBEKeySpecTest
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
PBEKeySpecTest
public PBEKeySpecTest()
-
Method Detail
-
testPBEKeySpec1
public void testPBEKeySpec1()
PBEKeySpec(char[] password) method testing. Tests the behavior of
the method in the case of null input char array and tests that input
array is copied during the object initialization.
-
testPBEKeySpec2
public void testPBEKeySpec2()
PBEKeySpec(char[] password, byte[] salt, int iterationCount, int
keyLength) method testing. Tests the behavior of the method in the case
of inappropriate parameters and checks that array objects specified as
a parameters are copied during the object initialization.
-
testPBEKeySpec3
public void testPBEKeySpec3()
PBEKeySpec(char[] password, byte[] salt, int iterationCount) method
testing. Tests the behavior of the method in the case
of inappropriate parameters and checks that array objects specified as
a parameters are copied during the object initialization.
-
testGetPassword
public void testGetPassword()
getPassword() method testing. Tests that returned password is equal
to the password specified in the constructor and that the change of
returned array does not cause the change of internal array.
-
testGetSalt
public void testGetSalt()
getSalt() method testing. Tests that returned salt is equal
to the salt specified in the constructor and that the change of
returned array does not cause the change of internal array.
Also it checks that the method returns null if salt is not
specified.
-
testGetIterationCount
public void testGetIterationCount()
getIterationCount() method testing. Tests that returned value is equal
to the value specified in the constructor.
Also it checks that the method returns 0 if iterationCount is not
specified.
Content
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: 1913 / . Delta: 0.00842 с