KeyAgreementSpi.engineGenerateSecret() | Java

 

Descripción

Sintaxis

protected abstract byte[] engineGenerateSecret() throws IllegalStateException
protected abstract int engineGenerateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException
protected abstract SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException

Parámetros

  • String algorithm,
  • byte[] sharedSecret,
  • int offset,

Excepciones

NoSuchAlgorithmException, InvalidKeyException, ShortBufferException, IllegalStateException

Clase Padre

KeyAgreementSpi

Ejemplo


Líneas de Código

    Manual Java

    Aprende más sobre Java consultando online o descargando nuestro manual.

    Test Java

    ¿Te atreves a probar tus habilidades y conocimiento en Java con nuestro test?

    Vídeos Java

    Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.