-
Notifications
You must be signed in to change notification settings - Fork 224
Expand file tree
/
Copy pathIssueOptions.java
More file actions
96 lines (75 loc) · 2.17 KB
/
IssueOptions.java
File metadata and controls
96 lines (75 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package com.bettercloud.vault.api.pki;
import java.util.List;
/**
* Value class for options to be passed to the PKI issue API.
*/
public class IssueOptions {
private List<String> altNames;
private List<String> ipSans;
private List<String> uriSans;
private List<String> otherSans;
private String ttl;
private CredentialFormat credentialFormat;
private PrivateKeyFormat privateKeyFormat;
private Boolean excludeCnFromSans;
private String csr;
public IssueOptions altNames(List<String> altNames) {
this.altNames = altNames;
return this;
}
public IssueOptions ipSans(List<String> ipSans) {
this.ipSans = ipSans;
return this;
}
public IssueOptions uriSans(List<String> uriSans) {
this.uriSans = uriSans;
return this;
}
public IssueOptions otherSans(List<String> otherSans) {
this.otherSans = otherSans;
return this;
}
public IssueOptions ttl(String ttl) {
this.ttl = ttl;
return this;
}
public IssueOptions credentialFormat(CredentialFormat format) {
this.credentialFormat = format;
return this;
}
public IssueOptions privateKeyFormat(PrivateKeyFormat privateKeyFormat) {
this.privateKeyFormat = privateKeyFormat;
return this;
}
public IssueOptions excludeCnFromSans(Boolean excludeCnFromSans) {
this.excludeCnFromSans = excludeCnFromSans;
return this;
}
public IssueOptions csr(String csr) {
this.csr = csr;
return this;
}
public List<String> getAltNames() {
return altNames;
}
public List<String> getIpSans() { return ipSans; }
public List<String> getUriSans() {
return uriSans;
}
public List<String> getOtherSans() {
return otherSans;
}
public String getTtl() {
return ttl;
}
public CredentialFormat getCredentialFormat() { return credentialFormat; }
public PrivateKeyFormat getPrivateKeyFormat() {
return privateKeyFormat;
}
public Boolean isExcludeCnFromSans() {
return excludeCnFromSans;
}
public String getCsr() {
return csr;
}
}