/** * Generates the shared secret. * * @return the generated shared secret. * @throws IllegalStateException * if this key agreement is not complete. */ public final byte[] generateSecret() throws IllegalStateException { return spiImpl.engineGenerateSecret(); }
/** * Generates the shared secret and stores it into the buffer {@code * sharedSecred} at {@code offset}. * * @param sharedSecret * the buffer to store the shared secret. * @param offset * the offset in the buffer. * @return the number of bytes stored in the buffer. * @throws IllegalStateException * if this key agreement is not complete. * @throws ShortBufferException * if the specified buffer is too small for the shared secret. */ public final int generateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException { return spiImpl.engineGenerateSecret(sharedSecret, offset); }
/** * Generates the shared secret. * * @param algorithm * the algorithm to for the {@code SecretKey} * @return the shared secret as a {@code SecretKey} of the specified * algorithm. * @throws IllegalStateException * if this key agreement is not complete. * @throws NoSuchAlgorithmException * if the specified algorithm for the secret key does not * exists. * @throws InvalidKeyException * if a {@code SecretKey} with the specified algorithm cannot be * created using the generated shared secret. */ public final SecretKey generateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException { return spiImpl.engineGenerateSecret(algorithm); }
/** * Generates the shared secret. * * @return the generated shared secret. * @throws IllegalStateException * if this key agreement is not complete. */ public final byte[] generateSecret() throws IllegalStateException { return spiImpl.engineGenerateSecret(); }
/** * Generates the shared secret. * * @return the generated shared secret. * @throws IllegalStateException * if this key agreement is not complete. */ public final byte[] generateSecret() throws IllegalStateException { return spiImpl.engineGenerateSecret(); }
/** * Generates the shared secret. * * @return the generated shared secret. * @throws IllegalStateException * if this key agreement is not complete. */ public final byte[] generateSecret() throws IllegalStateException { return spiImpl.engineGenerateSecret(); }
/** * Generates the shared secret. * * @return the generated shared secret. * @throws IllegalStateException * if this key agreement is not complete. */ public final byte[] generateSecret() throws IllegalStateException { return spiImpl.engineGenerateSecret(); }
/** * Generates the shared secret. * * @return the generated shared secret. * @throws IllegalStateException * if this key agreement is not complete. */ public final byte[] generateSecret() throws IllegalStateException { return spiImpl.engineGenerateSecret(); }
/** * Generates the shared secret. * * @return the generated shared secret. * @throws IllegalStateException * if this key agreement is not complete. */ public final byte[] generateSecret() throws IllegalStateException { return spiImpl.engineGenerateSecret(); }
/** * Generates the shared secret and stores it into the buffer {@code * sharedSecred} at {@code offset}. * * @param sharedSecret * the buffer to store the shared secret. * @param offset * the offset in the buffer. * @return the number of bytes stored in the buffer. * @throws IllegalStateException * if this key agreement is not complete. * @throws ShortBufferException * if the specified buffer is too small for the shared secret. */ public final int generateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException { return spiImpl.engineGenerateSecret(sharedSecret, offset); }
/** * Generates the shared secret and stores it into the buffer {@code * sharedSecred} at {@code offset}. * * @param sharedSecret * the buffer to store the shared secret. * @param offset * the offset in the buffer. * @return the number of bytes stored in the buffer. * @throws IllegalStateException * if this key agreement is not complete. * @throws ShortBufferException * if the specified buffer is too small for the shared secret. */ public final int generateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException { return spiImpl.engineGenerateSecret(sharedSecret, offset); }
/** * Generates the shared secret and stores it into the buffer {@code * sharedSecred} at {@code offset}. * * @param sharedSecret * the buffer to store the shared secret. * @param offset * the offset in the buffer. * @return the number of bytes stored in the buffer. * @throws IllegalStateException * if this key agreement is not complete. * @throws ShortBufferException * if the specified buffer is too small for the shared secret. */ public final int generateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException { return spiImpl.engineGenerateSecret(sharedSecret, offset); }
/** * Generates the shared secret and stores it into the buffer {@code * sharedSecred} at {@code offset}. * * @param sharedSecret * the buffer to store the shared secret. * @param offset * the offset in the buffer. * @return the number of bytes stored in the buffer. * @throws IllegalStateException * if this key agreement is not complete. * @throws ShortBufferException * if the specified buffer is too small for the shared secret. */ public final int generateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException { return spiImpl.engineGenerateSecret(sharedSecret, offset); }
/** * Generates the shared secret and stores it into the buffer {@code * sharedSecred} at {@code offset}. * * @param sharedSecret * the buffer to store the shared secret. * @param offset * the offset in the buffer. * @return the number of bytes stored in the buffer. * @throws IllegalStateException * if this key agreement is not complete. * @throws ShortBufferException * if the specified buffer is too small for the shared secret. */ public final int generateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException { return spiImpl.engineGenerateSecret(sharedSecret, offset); }
/** * Generates the shared secret and stores it into the buffer {@code * sharedSecred} at {@code offset}. * * @param sharedSecret * the buffer to store the shared secret. * @param offset * the offset in the buffer. * @return the number of bytes stored in the buffer. * @throws IllegalStateException * if this key agreement is not complete. * @throws ShortBufferException * if the specified buffer is too small for the shared secret. */ public final int generateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException { return spiImpl.engineGenerateSecret(sharedSecret, offset); }
/** * Generates the shared secret. * * @param algorithm * the algorithm to for the {@code SecretKey} * @return the shared secret as a {@code SecretKey} of the specified * algorithm. * @throws IllegalStateException * if this key agreement is not complete. * @throws NoSuchAlgorithmException * if the specified algorithm for the secret key does not * exists. * @throws InvalidKeyException * if a {@code SecretKey} with the specified algorithm cannot be * created using the generated shared secret. */ public final SecretKey generateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException { return spiImpl.engineGenerateSecret(algorithm); }
/** * Generates the shared secret. * * @param algorithm * the algorithm to for the {@code SecretKey} * @return the shared secret as a {@code SecretKey} of the specified * algorithm. * @throws IllegalStateException * if this key agreement is not complete. * @throws NoSuchAlgorithmException * if the specified algorithm for the secret key does not * exists. * @throws InvalidKeyException * if a {@code SecretKey} with the specified algorithm cannot be * created using the generated shared secret. */ public final SecretKey generateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException { return spiImpl.engineGenerateSecret(algorithm); }
/** * Generates the shared secret. * * @param algorithm * the algorithm to for the {@code SecretKey} * @return the shared secret as a {@code SecretKey} of the specified * algorithm. * @throws IllegalStateException * if this key agreement is not complete. * @throws NoSuchAlgorithmException * if the specified algorithm for the secret key does not * exists. * @throws InvalidKeyException * if a {@code SecretKey} with the specified algorithm cannot be * created using the generated shared secret. */ public final SecretKey generateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException { return spiImpl.engineGenerateSecret(algorithm); }
/** * Generates the shared secret. * * @param algorithm * the algorithm to for the {@code SecretKey} * @return the shared secret as a {@code SecretKey} of the specified * algorithm. * @throws IllegalStateException * if this key agreement is not complete. * @throws NoSuchAlgorithmException * if the specified algorithm for the secret key does not * exists. * @throws InvalidKeyException * if a {@code SecretKey} with the specified algorithm cannot be * created using the generated shared secret. */ public final SecretKey generateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException { return spiImpl.engineGenerateSecret(algorithm); }
/** * Generates the shared secret. * * @param algorithm * the algorithm to for the {@code SecretKey} * @return the shared secret as a {@code SecretKey} of the specified * algorithm. * @throws IllegalStateException * if this key agreement is not complete. * @throws NoSuchAlgorithmException * if the specified algorithm for the secret key does not * exists. * @throws InvalidKeyException * if a {@code SecretKey} with the specified algorithm cannot be * created using the generated shared secret. */ public final SecretKey generateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException { return spiImpl.engineGenerateSecret(algorithm); }