1 5 6 9 10 17 18 package javax.crypto; 19 20 import java.security.*; 21 import java.security.spec.*; 22 23 56 public abstract class KeyAgreementSpi 57 { 58 59 public KeyAgreementSpi() { } 60 61 81 protected abstract void engineInit(Key key, SecureRandom random) 82 throws InvalidKeyException; 83 84 100 protected abstract void engineInit(Key key, AlgorithmParameterSpec params, 101 SecureRandom random) 102 throws InvalidKeyException, InvalidAlgorithmParameterException; 103 104 123 protected abstract Key engineDoPhase(Key key, boolean lastPhase) 124 throws InvalidKeyException, IllegalStateException; 125 126 141 protected abstract byte[] engineGenerateSecret() 142 throws IllegalStateException; 143 144 170 protected abstract int engineGenerateSecret(byte[] sharedSecret, int 171 offset) throws IllegalStateException, ShortBufferException; 172 173 196 protected abstract SecretKey engineGenerateSecret(String algorithm) 197 throws IllegalStateException, NoSuchAlgorithmException, 198 InvalidKeyException; 199 } 200 | Popular Tags |