/** * Removes the subject identified by the specified {@code issuer} and {@code subject} from this builder. * * @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}. */ default LabelScoped removeSubject(final SubjectIssuer issuer, final CharSequence subject) { removeSubjectFor(getLabel(), SubjectId.newInstance(issuer, subject)); return this; }
/** * Removes the subject identified by the specified {@code subjectId} from this builder. * * @param subjectId the Subject ID 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}. */ default LabelScoped removeSubject(final SubjectId subjectId) { removeSubjectFor(getLabel(), subjectId); return this; }
/** * Removes the subject identified by the specified {@code subjectIssuerWithId} from this builder. * * @param subjectIssuerWithId the Subject issuer + Subject ID (separated with a "{@value * SubjectId#ISSUER_DELIMITER}") of the 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}. */ default LabelScoped removeSubject(final CharSequence subjectIssuerWithId) { removeSubjectFor(getLabel(), SubjectId.newInstance(subjectIssuerWithId)); return this; }
/** * Removes the specified {@code subject} from this builder. * * @param subject the 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}. */ default LabelScoped removeSubject(final Subject subject) { removeSubjectFor(getLabel(), subject); return this; }