/** * Set the credential. The credential must be of the supported type and algorithm. * * @param credential the credential, or {@code null} to indicate that no credential is available * @throws IllegalArgumentException if the given credential is not supported */ public void setCredential(final Credential credential) { if (credential != null && ! isCredentialSupported(credential)) { throw ElytronMessages.log.credentialNotSupported(); } this.credential = credential; }
/** * Set the credential. The credential must be of the supported type and algorithm. * * @param credential the credential, or {@code null} to indicate that no credential is available * @throws IllegalArgumentException if the given credential is not supported */ public void setCredential(final Credential credential) { if (credential != null && ! isCredentialSupported(credential)) { throw ElytronMessages.log.credentialNotSupported(); } this.credential = credential; }
/** * Set the credential. The credential must be of the supported type and algorithm. * * @param credential the credential, or {@code null} to indicate that no credential is available * @throws IllegalArgumentException if the given credential is not supported */ public void setCredential(final Credential credential) { if (credential != null && ! isCredentialSupported(credential)) { throw ElytronMessages.log.credentialNotSupported(); } this.credential = credential; }
/** * Set the credential. The credential must be of the supported type and algorithm. * * @param credential the credential, or {@code null} to indicate that no credential is available * @throws IllegalArgumentException if the given credential is not supported */ public void setCredential(final Credential credential) { if (credential != null && ! isCredentialSupported(credential)) { throw ElytronMessages.log.credentialNotSupported(); } this.credential = credential; }