/** * Helper method that returns the current {@link CredentialsTypeFilter} effective state for the supplied * {@link CredentialsDescriptor}. Used to ensure that when changing implementation the initial config is equivalent to * the current. * * @param type the {@link CredentialsDescriptor} to check. * @return {@code true} if and only if the current {@link CredentialsTypeFilter} returns {@code true} for the * supplied {@link CredentialsDescriptor}. */ public boolean filter(CredentialsDescriptor type) { CredentialsProviderManager manager = CredentialsProviderManager.getInstance(); return manager == null || manager.getTypeFilter().filter(type); }
/** * Helper method that returns the current {@link CredentialsTypeFilter} effective state for the supplied * {@link CredentialsDescriptor}. Used to ensure that when changing implementation the initial config is equivalent to * the current. * * @param type the {@link CredentialsDescriptor} to check. * @return {@code true} if and only if the current {@link CredentialsTypeFilter} returns {@code true} for the * supplied {@link CredentialsDescriptor}. */ public boolean filter(CredentialsDescriptor type) { CredentialsProviderManager manager = CredentialsProviderManager.getInstance(); return manager == null || manager.getTypeFilter().filter(type); }
/** * A Jelly EL short-cut for {@link CredentialsProviderManager#getTypeFilter()}. * * @return the {@link CredentialsTypeFilter}. */ @SuppressWarnings("unused") // jelly EL helper @Restricted(NoExternalUse.class) public CredentialsTypeFilter getTypeFilter() { CredentialsProviderManager manager = getInstance(); return manager == null ? new CredentialsTypeFilter.None() : manager.getTypeFilter(); }
/** * A Jelly EL short-cut for {@link CredentialsProviderManager#getTypeFilter()}. * * @return the {@link CredentialsTypeFilter}. */ @SuppressWarnings("unused") // jelly EL helper @Restricted(NoExternalUse.class) public CredentialsTypeFilter getTypeFilter() { CredentialsProviderManager manager = getInstance(); return manager == null ? new CredentialsTypeFilter.None() : manager.getTypeFilter(); }