@Override public ImmutablePolicyBuilderLabelScoped removeSubjectFor(final CharSequence label, final Subject subject) { delegate.removeSubjectFor(label, subject); return this; }
@Override public ImmutablePolicyBuilderLabelScoped removeSubjectFor(final CharSequence label, final CharSequence subjectId) { delegate.removeSubjectFor(label, subjectId); return this; }
/** * Removes the subject identified by the specified {@code issuer} and {@code subject} from this builder. * * @param label the label identifying the PolicyEntry to modify. * @param issuer the SubjectId's {@code issuer} to remove from the PolicyEntry identified by the {@code label}. * @param subject the character sequence for the SubjectId's {@code subject} to remove from the PolicyEntry * identified by the {@code label}. * @return this builder to allow method chaining. * @throws NullPointerException if any argument is {@code null}. * @throws IllegalArgumentException if {@code label} is empty. */ default PolicyBuilder removeSubjectFor(final CharSequence label, final SubjectIssuer issuer, final CharSequence subject) { return removeSubjectFor(label, SubjectId.newInstance(issuer, subject)); }