/** * Does the next (or the last) phase of the key agreement, using the * specified key. * * @param key * the key received from the other party for this phase. * @param lastPhase * set to {@code true} if this is the last phase of this key * agreement. * @return the intermediate key from this phase or {@code null} if there is * no intermediate key for this phase. * @throws InvalidKeyException * if the specified key cannot be used in this key agreement or * this phase, * @throws IllegalStateException * if this instance has not been initialized. */ public final Key doPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException { return spiImpl.engineDoPhase(key, lastPhase); }
/** * Does the next (or the last) phase of the key agreement, using the * specified key. * * @param key * the key received from the other party for this phase. * @param lastPhase * set to {@code true} if this is the last phase of this key * agreement. * @return the intermediate key from this phase or {@code null} if there is * no intermediate key for this phase. * @throws InvalidKeyException * if the specified key cannot be used in this key agreement or * this phase, * @throws IllegalStateException * if this instance has not been initialized. */ public final Key doPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException { return spiImpl.engineDoPhase(key, lastPhase); }
/** * Does the next (or the last) phase of the key agreement, using the * specified key. * * @param key * the key received from the other party for this phase. * @param lastPhase * set to {@code true} if this is the last phase of this key * agreement. * @return the intermediate key from this phase or {@code null} if there is * no intermediate key for this phase. * @throws InvalidKeyException * if the specified key cannot be used in this key agreement or * this phase, * @throws IllegalStateException * if this instance has not been initialized. */ public final Key doPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException { return spiImpl.engineDoPhase(key, lastPhase); }
/** * Does the next (or the last) phase of the key agreement, using the * specified key. * * @param key * the key received from the other party for this phase. * @param lastPhase * set to {@code true} if this is the last phase of this key * agreement. * @return the intermediate key from this phase or {@code null} if there is * no intermediate key for this phase. * @throws InvalidKeyException * if the specified key cannot be used in this key agreement or * this phase, * @throws IllegalStateException * if this instance has not been initialized. */ public final Key doPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException { return spiImpl.engineDoPhase(key, lastPhase); }
/** * Does the next (or the last) phase of the key agreement, using the * specified key. * * @param key * the key received from the other party for this phase. * @param lastPhase * set to {@code true} if this is the last phase of this key * agreement. * @return the intermediate key from this phase or {@code null} if there is * no intermediate key for this phase. * @throws InvalidKeyException * if the specified key cannot be used in this key agreement or * this phase, * @throws IllegalStateException * if this instance has not been initialized. */ public final Key doPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException { return spiImpl.engineDoPhase(key, lastPhase); }
/** * Does the next (or the last) phase of the key agreement, using the * specified key. * * @param key * the key received from the other party for this phase. * @param lastPhase * set to {@code true} if this is the last phase of this key * agreement. * @return the intermediate key from this phase or {@code null} if there is * no intermediate key for this phase. * @throws InvalidKeyException * if the specified key cannot be used in this key agreement or * this phase, * @throws IllegalStateException * if this instance has not been initialized. */ public final Key doPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException { return spiImpl.engineDoPhase(key, lastPhase); }
/** * Does the next (or the last) phase of the key agreement, using the * specified key. * * @param key * the key received from the other party for this phase. * @param lastPhase * set to {@code true} if this is the last phase of this key * agreement. * @return the intermediate key from this phase or {@code null} if there is * no intermediate key for this phase. * @throws InvalidKeyException * if the specified key cannot be used in this key agreement or * this phase, * @throws IllegalStateException * if this instance has not been initialized. */ public final Key doPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException { return spiImpl.engineDoPhase(key, lastPhase); }