1 7 8 15 16 package javax.crypto; 17 18 import java.security.*; 19 20 import java.security.spec.AlgorithmParameterSpec; 21 import java.nio.ByteBuffer; 22 23 44 public class Mac implements Cloneable 45 { 46 47 54 protected Mac(MacSpi macSpi, Provider provider, String algorithm) { } 55 56 65 public final String getAlgorithm() { } 66 67 88 public static final Mac getInstance(String algorithm) 89 throws NoSuchAlgorithmException 90 { } 91 92 112 public static final Mac getInstance(String algorithm, String provider) 113 throws NoSuchAlgorithmException, NoSuchProviderException 114 { } 115 116 135 public static final Mac getInstance(String algorithm, Provider provider) 136 throws NoSuchAlgorithmException 137 { } 138 139 144 public final Provider getProvider() { } 145 146 151 public final int getMacLength() { } 152 153 161 public final void init(Key key) throws InvalidKeyException { } 162 163 175 public final void init(Key key, AlgorithmParameterSpec params) 176 throws InvalidKeyException, InvalidAlgorithmParameterException 177 { } 178 179 187 public final void update(byte input) throws IllegalStateException { } 188 189 197 public final void update(byte[] input) throws IllegalStateException { } 198 199 210 public final void update(byte[] input, int offset, int len) 211 throws IllegalStateException 212 { } 213 214 226 public final void update(ByteBuffer input) { } 227 228 247 public final byte[] doFinal() throws IllegalStateException { } 248 249 275 public final void doFinal(byte[] output, int outOffset) 276 throws ShortBufferException, IllegalStateException 277 { } 278 279 299 public final byte[] doFinal(byte[] input) throws IllegalStateException { } 300 301 315 public final void reset() { } 316 317 325 public final Object clone() throws CloneNotSupportedException { } 326 } 327 | Popular Tags |