/** * Removes all addresses from the collection that are note trusted. */ public void removeUntrusted() { this.removeUntrusted(NHINDAddressCollection.DefaultMinTrustStatus); }
@Override /** * {@inheritDoc} */ protected void categorizeRecipients(TrustEnforcementStatus minTrustStatus) { super.categorizeRecipients(minTrustStatus); this.getDomainRecipients().removeUntrusted(minTrustStatus); } }
/** * Categorizes recipients as either trusted or untrusted (rejected). * @param minTrustStatus The minimum level of trust a recipient must have in order to be considered trusted. */ protected void categorizeRecipients(TrustEnforcementStatus minTrustStatus) { rejectedRecipients = NHINDAddressCollection.create(getRecipients().getUntrusted(minTrustStatus)); getRecipients().removeUntrusted(minTrustStatus); } }