1 64 65 package com.jcorporate.expresso.core.security; 66 67 72 73 import com.jcorporate.expresso.kernel.exception.ChainedException; 74 75 76 79 public abstract class AbstractRandomNumber { 80 83 private CryptoManager cryptoManager; 84 85 public AbstractRandomNumber() 86 throws ChainedException { 87 } 88 89 96 abstract public byte[] getRandomBytes(int numBytes); 97 98 public void init() throws ChainedException { 99 } 100 101 public void setCryptoManager(CryptoManager cryptoManager) { 102 this.cryptoManager = cryptoManager; 103 } 104 105 public CryptoManager getCryptoManager() { 106 return cryptoManager; 107 } 108 109 110 111 } 112 113 | Popular Tags |