/** * Flush the contents of this credential store to storage. This method may be a no-op on credential stores * without backing storage or which do not buffer changes. * * @throws CredentialStoreException if flushing the store fails for some reason */ public void flush() throws CredentialStoreException { if (isModifiable()) { spi.flush(); } else { throw log.nonModifiableCredentialStore("flush"); } }
/** * Remove the credentialType with from given alias matching the given criteria from the store. * * @param credentialAlias alias to remove credential(s) from * @param credentialType credential type to match (must not be {@code null}) * @param credentialAlgorithm the algorithm name to match, or {@code null} to match any * @param parameterSpec the parameters to match, or {@code null} to match any * @throws CredentialStoreException if credential removal fails */ public void remove(String credentialAlias, Class<? extends Credential> credentialType, String credentialAlgorithm, AlgorithmParameterSpec parameterSpec) throws CredentialStoreException { if (isModifiable()) { spi.remove(credentialAlias, credentialType, credentialAlgorithm, parameterSpec); } else { throw log.nonModifiableCredentialStore("remove"); } }
/** * Store credential to the store under the given alias. If given alias already contains specific credential type type the credential * replaces older one. <em>Note:</em> {@link CredentialStoreSpi} supports storing of multiple entries (credential types) per alias. * Each must be of different credential type. * @param credentialAlias to store the credential to the store * @param credential instance of {@link Credential} to store * @param protectionParameter the protection parameter to use, or {@code null} for none * @param <C> the class of type to which should be credential casted * @throws CredentialStoreException when the credential cannot be stored * @throws UnsupportedCredentialTypeException when the credentialType is not supported */ public <C extends Credential> void store(String credentialAlias, C credential, ProtectionParameter protectionParameter) throws CredentialStoreException, UnsupportedCredentialTypeException { if (isModifiable()) { spi.store(credentialAlias, credential, protectionParameter); } else { throw log.nonModifiableCredentialStore("store"); } }
/** * Flush the contents of this credential store to storage. This method may be a no-op on credential stores * without backing storage or which do not buffer changes. * * @throws CredentialStoreException if flushing the store fails for some reason */ public void flush() throws CredentialStoreException { if (isModifiable()) { spi.flush(); } else { throw log.nonModifiableCredentialStore("flush"); } }
/** * Flush the contents of this credential store to storage. This method may be a no-op on credential stores * without backing storage or which do not buffer changes. * * @throws CredentialStoreException if flushing the store fails for some reason */ public void flush() throws CredentialStoreException { if (isModifiable()) { spi.flush(); } else { throw log.nonModifiableCredentialStore("flush"); } }
/** * Flush the contents of this credential store to storage. This method may be a no-op on credential stores * without backing storage or which do not buffer changes. * * @throws CredentialStoreException if flushing the store fails for some reason */ public void flush() throws CredentialStoreException { if (isModifiable()) { spi.flush(); } else { throw log.nonModifiableCredentialStore("flush"); } }
/** * Remove the credentialType with from given alias matching the given criteria from the store. * * @param credentialAlias alias to remove credential(s) from * @param credentialType credential type to match (must not be {@code null}) * @param credentialAlgorithm the algorithm name to match, or {@code null} to match any * @param parameterSpec the parameters to match, or {@code null} to match any * @throws CredentialStoreException if credential removal fails */ public void remove(String credentialAlias, Class<? extends Credential> credentialType, String credentialAlgorithm, AlgorithmParameterSpec parameterSpec) throws CredentialStoreException { if (isModifiable()) { spi.remove(credentialAlias, credentialType, credentialAlgorithm, parameterSpec); } else { throw log.nonModifiableCredentialStore("remove"); } }
/** * Remove the credentialType with from given alias matching the given criteria from the store. * * @param credentialAlias alias to remove credential(s) from * @param credentialType credential type to match (must not be {@code null}) * @param credentialAlgorithm the algorithm name to match, or {@code null} to match any * @param parameterSpec the parameters to match, or {@code null} to match any * @throws CredentialStoreException if credential removal fails */ public void remove(String credentialAlias, Class<? extends Credential> credentialType, String credentialAlgorithm, AlgorithmParameterSpec parameterSpec) throws CredentialStoreException { if (isModifiable()) { spi.remove(credentialAlias, credentialType, credentialAlgorithm, parameterSpec); } else { throw log.nonModifiableCredentialStore("remove"); } }
/** * Remove the credentialType with from given alias matching the given criteria from the store. * * @param credentialAlias alias to remove credential(s) from * @param credentialType credential type to match (must not be {@code null}) * @param credentialAlgorithm the algorithm name to match, or {@code null} to match any * @param parameterSpec the parameters to match, or {@code null} to match any * @throws CredentialStoreException if credential removal fails */ public void remove(String credentialAlias, Class<? extends Credential> credentialType, String credentialAlgorithm, AlgorithmParameterSpec parameterSpec) throws CredentialStoreException { if (isModifiable()) { spi.remove(credentialAlias, credentialType, credentialAlgorithm, parameterSpec); } else { throw log.nonModifiableCredentialStore("remove"); } }
/** * Store credential to the store under the given alias. If given alias already contains specific credential type type the credential * replaces older one. <em>Note:</em> {@link CredentialStoreSpi} supports storing of multiple entries (credential types) per alias. * Each must be of different credential type. * @param credentialAlias to store the credential to the store * @param credential instance of {@link Credential} to store * @param protectionParameter the protection parameter to use, or {@code null} for none * @param <C> the class of type to which should be credential casted * @throws CredentialStoreException when the credential cannot be stored * @throws UnsupportedCredentialTypeException when the credentialType is not supported */ public <C extends Credential> void store(String credentialAlias, C credential, ProtectionParameter protectionParameter) throws CredentialStoreException, UnsupportedCredentialTypeException { if (isModifiable()) { spi.store(credentialAlias, credential, protectionParameter); } else { throw log.nonModifiableCredentialStore("store"); } }
/** * Store credential to the store under the given alias. If given alias already contains specific credential type type the credential * replaces older one. <em>Note:</em> {@link CredentialStoreSpi} supports storing of multiple entries (credential types) per alias. * Each must be of different credential type. * @param credentialAlias to store the credential to the store * @param credential instance of {@link Credential} to store * @param protectionParameter the protection parameter to use, or {@code null} for none * @param <C> the class of type to which should be credential casted * @throws CredentialStoreException when the credential cannot be stored * @throws UnsupportedCredentialTypeException when the credentialType is not supported */ public <C extends Credential> void store(String credentialAlias, C credential, ProtectionParameter protectionParameter) throws CredentialStoreException, UnsupportedCredentialTypeException { if (isModifiable()) { spi.store(credentialAlias, credential, protectionParameter); } else { throw log.nonModifiableCredentialStore("store"); } }
/** * Store credential to the store under the given alias. If given alias already contains specific credential type type the credential * replaces older one. <em>Note:</em> {@link CredentialStoreSpi} supports storing of multiple entries (credential types) per alias. * Each must be of different credential type. * @param credentialAlias to store the credential to the store * @param credential instance of {@link Credential} to store * @param protectionParameter the protection parameter to use, or {@code null} for none * @param <C> the class of type to which should be credential casted * @throws CredentialStoreException when the credential cannot be stored * @throws UnsupportedCredentialTypeException when the credentialType is not supported */ public <C extends Credential> void store(String credentialAlias, C credential, ProtectionParameter protectionParameter) throws CredentialStoreException, UnsupportedCredentialTypeException { if (isModifiable()) { spi.store(credentialAlias, credential, protectionParameter); } else { throw log.nonModifiableCredentialStore("store"); } }