KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javacard > security > RandomData

javacard.security
Class RandomData

java.lang.Object
  |
  +--javacard.security.RandomData

public static final byte ALG_PSEUDO_RANDOM
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final byte ALG_SECURE_RANDOM
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void generateData(byte[] buffer,
                                  short offset,
                                  short length)
                           throws CryptoException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[823]Generates secure random data
By Anonymous on 2005/04/17 09:32:26  Rate
RandomData random = RandomData.getInstance  ( javacard.security.RandomData.ALG_SECURE_RANDOM ) ; 
 byte  [  ]  buffer = new byte [ 8 ] ; 
 random = RandomData.getInstance ( RandomData.ALG_SECURE_RANDOM ) ; 
 random.generateData ( buffer, ( short ) 0, ( short ) 8 ) ; 
 


public static final RandomData getInstance(byte algorithm)
                                    throws CryptoException
See Also:
ALG_PSEUDO_RANDOM
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected RandomData()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void setSeed(byte[] buffer,
                             short offset,
                             short length)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags