You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/bettercloud/vault/api/pki/RoleOptions.java
+33-1Lines changed: 33 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,10 @@ public class RoleOptions implements Serializable {
35
35
privateStringkeyType;
36
36
privateLongkeyBits;
37
37
privateBooleanuseCsrCommonName;
38
+
privateBooleanallowSpiffename;
39
+
privateBooleanuseCsrSans;
40
+
privateList<String> keyUsage;
41
+
38
42
39
43
/**
40
44
* @param ttl (optional) The Time To Live value provided as a string duration with time suffix. Hour is the largest suffix. If not set, uses the system default value or the value of max_ttl, whichever is shorter.
@@ -98,7 +102,15 @@ public RoleOptions allowSubdomains(final Boolean allowSubdomains) {
98
102
this.allowSubdomains = allowSubdomains;
99
103
returnthis;
100
104
}
101
-
105
+
/**
106
+
* @param allowSpiffename (optional)
107
+
*
108
+
* @return This object, with AllowSpiffename populated, ready for other builder methods or immediate use.
* @param allowAnyName (optional) If set, clients can request any CN. Useful in some circumstances, but make sure you understand whether it is appropriate for your installation before enabling it. Defaults to false.
104
116
*
@@ -198,6 +210,15 @@ public RoleOptions useCsrCommonName(final Boolean useCsrCommonName) {
198
210
this.useCsrCommonName = useCsrCommonName;
199
211
returnthis;
200
212
}
213
+
/**
214
+
* @param useCsrSans (optional) If set, when used with the CSR signing endpoint, the common name in the CSR will be used instead of taken from the JSON data. This does not include any requested SANs in the CSR. Defaults to false.
215
+
*
216
+
* @return This object, with useCsrCommonName populated, ready for other builder methods or immediate use.
0 commit comments