Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.jce.test
Class TestSealedObject  view TestSealedObject download TestSealedObject.java

java.lang.Object
  extended bycryptix.jce.test.Test
      extended bycryptix.jce.test.TestSealedObject

final class TestSealedObject
extends Test

This is a testclass for SealedObject and we use DES/ECB/NoPadding as default


Field Summary
private  java.lang.String algo
           
private  javax.crypto.Cipher c
           
private  javax.crypto.Cipher d
           
private  int KEY_SIZE
           
private static java.lang.String name
           
private  java.lang.String s
           
private  javax.crypto.SecretKey sk
           
 
Fields inherited from class cryptix.jce.test.Test
 
Constructor Summary
protected TestSealedObject()
           
protected TestSealedObject(java.lang.String algo, int KEY_SIZE)
           
 
Method Summary
protected  void doIt()
           
private  void init()
           
private  boolean test1(javax.crypto.Cipher c, javax.crypto.Cipher d, java.lang.String s)
           
private  boolean test2(javax.crypto.Cipher c, javax.crypto.SecretKey sKey, java.lang.String s)
           
 
Methods inherited from class cryptix.jce.test.Test
beginTest, main, passIf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private static final java.lang.String name
See Also:
Constant Field Values

c

private javax.crypto.Cipher c

d

private javax.crypto.Cipher d

sk

private javax.crypto.SecretKey sk

s

private final java.lang.String s
See Also:
Constant Field Values

algo

private java.lang.String algo

KEY_SIZE

private int KEY_SIZE
Constructor Detail

TestSealedObject

protected TestSealedObject(java.lang.String algo,
                           int KEY_SIZE)

TestSealedObject

protected TestSealedObject()
Method Detail

doIt

protected void doIt()
             throws java.lang.Exception
Specified by:
doIt in class Test

init

private void init()
           throws java.lang.Exception

test1

private boolean test1(javax.crypto.Cipher c,
                      javax.crypto.Cipher d,
                      java.lang.String s)
               throws java.lang.Exception

test2

private boolean test2(javax.crypto.Cipher c,
                      javax.crypto.SecretKey sKey,
                      java.lang.String s)
               throws java.lang.Exception