/** * Get the acquired credential, if it is set and of the given type and algorithm, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param algorithmName the algorithm name * @param <C> the credential type * @return the credential, or {@code null} if the criteria are not met */ public <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName) { return applyToCredential(credentialType, algorithmName, Function.identity()); }
/** * Get the acquired credential, if it is set and of the given type, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param <C> the credential type * @return the credential, or {@code null} if the criteria wasn't met */ public <C extends Credential> C getCredential(Class<C> credentialType) { return applyToCredential(credentialType, Function.identity()); }
/** * Get the acquired credential, if it is set and of the given type, algorithm, and parameters, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param algorithmName the algorithm name * @param parameterSpec the parameter specification to match, or {@code null} if any parameters are allowed or parameters are not used by * the credential type * @param <C> the credential type * @return the credential, or {@code null} if the criteria are not met */ public <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) { return applyToCredential(credentialType, algorithmName, parameterSpec, Function.identity()); }
/** * Get the acquired credential, if it is set and of the given type, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param <C> the credential type * @return the credential, or {@code null} if the criteria wasn't met */ public <C extends Credential> C getCredential(Class<C> credentialType) { return applyToCredential(credentialType, Function.identity()); }
/** * Get the acquired credential, if it is set and of the given type and algorithm, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param algorithmName the algorithm name * @param <C> the credential type * @return the credential, or {@code null} if the criteria are not met */ public <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName) { return applyToCredential(credentialType, algorithmName, Function.identity()); }
/** * Get the acquired credential, if it is set and of the given type and algorithm, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param algorithmName the algorithm name * @param <C> the credential type * @return the credential, or {@code null} if the criteria are not met */ public <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName) { return applyToCredential(credentialType, algorithmName, Function.identity()); }
/** * Get the acquired credential, if it is set and of the given type and algorithm, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param algorithmName the algorithm name * @param <C> the credential type * @return the credential, or {@code null} if the criteria are not met */ public <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName) { return applyToCredential(credentialType, algorithmName, Function.identity()); }
/** * Get the acquired credential, if it is set and of the given type, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param <C> the credential type * @return the credential, or {@code null} if the criteria wasn't met */ public <C extends Credential> C getCredential(Class<C> credentialType) { return applyToCredential(credentialType, Function.identity()); }
/** * Get the acquired credential, if it is set and of the given type, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param <C> the credential type * @return the credential, or {@code null} if the criteria wasn't met */ public <C extends Credential> C getCredential(Class<C> credentialType) { return applyToCredential(credentialType, Function.identity()); }
/** * Get the acquired credential, if it is set and of the given type, algorithm, and parameters, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param algorithmName the algorithm name * @param parameterSpec the parameter specification to match, or {@code null} if any parameters are allowed or parameters are not used by * the credential type * @param <C> the credential type * @return the credential, or {@code null} if the criteria are not met */ public <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) { return applyToCredential(credentialType, algorithmName, parameterSpec, Function.identity()); }
/** * Get the acquired credential, if it is set and of the given type, algorithm, and parameters, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param algorithmName the algorithm name * @param parameterSpec the parameter specification to match, or {@code null} if any parameters are allowed or parameters are not used by * the credential type * @param <C> the credential type * @return the credential, or {@code null} if the criteria are not met */ public <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) { return applyToCredential(credentialType, algorithmName, parameterSpec, Function.identity()); }
/** * Get the acquired credential, if it is set and of the given type, algorithm, and parameters, and if so, return the credential cast to the type. * * @param credentialType the credential type class (must not be {@code null}) * @param algorithmName the algorithm name * @param parameterSpec the parameter specification to match, or {@code null} if any parameters are allowed or parameters are not used by * the credential type * @param <C> the credential type * @return the credential, or {@code null} if the criteria are not met */ public <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) { return applyToCredential(credentialType, algorithmName, parameterSpec, Function.identity()); }