| javax.crypto.SealedObjectTest
SealedObjectTest | public class SealedObjectTest extends TestCase (Code) | | |
testGetAlgorithm | public void testGetAlgorithm() throws Exception(Code) | | getAlgorithm() method testing. Tests if the returned value equals to the
corresponding value of Cipher object.
|
testGetObject1 | public void testGetObject1() throws Exception(Code) | | getObject(Key key) method testing. Tests if the object sealed with
encryption algorithm and specified parameters can be retrieved by
specifying the cryptographic key.
|
testGetObject2 | public void testGetObject2() throws Exception(Code) | | getObject(Cipher c) method testing. Tests if the proper exception is
thrown in the case of incorrect input parameters and if the object sealed
with encryption algorithm and specified parameters can be retrieved by
specifying the initialized Cipher object.
|
testGetObject3 | public void testGetObject3() throws Exception(Code) | | getObject(Key key, String provider) method testing. Tests if the proper
exception is thrown in the case of incorrect input parameters and if the
object sealed with encryption algorithm can be retrieved by specifying
the cryptographic key and provider name.
|
testReadObject | public void testReadObject() throws Exception(Code) | | readObject(ObjectInputStream s) method testing. Tests if the
serialization/deserialization works correctly: object is serialized,
deserialized, the content od deserialized object equals to the
content of initial object.
|
testSealedObject1 | public void testSealedObject1() throws Exception(Code) | | SealedObject(Serializable object, Cipher c) method testing. Tests if the
NullPointerException is thrown in the case of null cipher.
|
testSealedObject2 | public void testSealedObject2() throws Exception(Code) | | SealedObject(SealedObject so) method testing. Tests if the
NullPointerException is thrown in the case of null SealedObject.
|
|
|