Lines Matching refs:Builder
162 * Return a {@link Builder} for the default {@code NetworkSecurityConfig}.
178 public static final Builder getDefaultBuilder(int targetSdkVersion, int targetSandboxVesrsion) {
179 Builder builder = new Builder()
197 * Builder for creating {@code NetworkSecurityConfig} objects.
200 public static final class Builder {
207 private Builder mParentBuilder;
210 * Sets the parent {@code Builder} for this {@code Builder}.
211 * The parent will be used to determine values not configured in this {@code Builder}
212 * in {@link Builder#build()}, recursively if needed.
214 public Builder setParent(Builder parent) {
216 Builder current = parent;
219 throw new IllegalArgumentException("Loops are not allowed in Builder parents");
227 public Builder getParent() {
231 public Builder setPinSet(PinSet pinSet) {
246 public Builder setCleartextTrafficPermitted(boolean cleartextTrafficPermitted) {
262 public Builder setHstsEnforced(boolean hstsEnforced) {
278 public Builder addCertificatesEntryRef(CertificatesEntryRef ref) {
286 public Builder addCertificatesEntryRefs(Collection<? extends CertificatesEntryRef> refs) {