Descripción
Sintaxis
public final byte[] generateSecret() throws IllegalStateException
public final int generateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException
public final SecretKey generateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException
Parámetros
- String algorithm,
- byte[] sharedSecret,
- int offset,
Excepciones
NoSuchAlgorithmException, InvalidKeyException, ShortBufferException, IllegalStateException
Clase Padre
Ejemplo
Líneas de Código
Vídeos Java
Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.