1 5 6 9 10 17 18 package javax.crypto; 19 20 import java.security.Key; 21 import java.security.AlgorithmParameters; 22 import java.security.InvalidKeyException; 23 import java.security.InvalidAlgorithmParameterException; 24 import java.security.spec.AlgorithmParameterSpec; 25 26 39 public abstract class ExemptionMechanismSpi 40 { 41 42 public ExemptionMechanismSpi() { } 43 44 58 protected abstract int engineGetOutputSize(int inputLen); 59 60 77 protected abstract void engineInit(Key key) 78 throws InvalidKeyException, ExemptionMechanismException; 79 80 101 protected abstract void engineInit(Key key, AlgorithmParameterSpec params) 102 throws InvalidKeyException, InvalidAlgorithmParameterException, 103 ExemptionMechanismException; 104 105 126 protected abstract void engineInit(Key key, AlgorithmParameters params) 127 throws InvalidKeyException, InvalidAlgorithmParameterException, 128 ExemptionMechanismException; 129 130 138 protected abstract byte[] engineGenExemptionBlob() 139 throws ExemptionMechanismException; 140 141 163 protected abstract int engineGenExemptionBlob(byte[] output, int 164 outputOffset) throws ShortBufferException, ExemptionMechanismException; 165 } 166 | Popular Tags |