/** * Retrieve a new builder that can be used to create and configure a {@link ProcessCredentialsProvider}. */ public static Builder builder() { return new Builder(); }
public ProfileProcessCredentialsProvider(BasicProfile profile) { this.delegate = ProcessCredentialsProvider.builder() .withCommand(profile.getCredentialProcess()) .build(); }
/** * @see #setCommand(String) */ public Builder withCommand(String command) { setCommand(command); return this; }
/** * @see #setCredentialExpirationBuffer(int, TimeUnit) */ public Builder withCredentialExpirationBuffer(int value, TimeUnit unit) { setCredentialExpirationBuffer(value, unit); return this; }
/** * @see #setProcessOutputLimit(long) */ public Builder withProcessOutputLimit(long outputByteLimit) { setProcessOutputLimit(outputByteLimit); return this; }
/** * @see #setCommand(String) */ public Builder withCommand(String command) { setCommand(command); return this; }
/** * Retrieve a new builder that can be used to create and configure a {@link ProcessCredentialsProvider}. */ public static Builder builder() { return new Builder(); }
/** * @see #setCredentialExpirationBuffer(int, TimeUnit) */ public Builder withCredentialExpirationBuffer(int value, TimeUnit unit) { setCredentialExpirationBuffer(value, unit); return this; }
public ProfileProcessCredentialsProvider(BasicProfile profile) { this.delegate = ProcessCredentialsProvider.builder() .withCommand(profile.getCredentialProcess()) .build(); }
/** * @see #setProcessOutputLimit(long) */ public Builder withProcessOutputLimit(long outputByteLimit) { setProcessOutputLimit(outputByteLimit); return this; }