Add static builder() method to AppRole class
This commit is contained in:
@ -28,6 +28,17 @@ import java.util.List;
|
||||
*/
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public final class AppRole {
|
||||
/**
|
||||
* Get {@link AppRoleBuilder} instance.
|
||||
*
|
||||
* @param name Role name.
|
||||
* @return AppRole Builder.
|
||||
* @since 0.8
|
||||
*/
|
||||
public static AppRoleBuilder builder(final String name) {
|
||||
return new AppRoleBuilder(name);
|
||||
}
|
||||
|
||||
@JsonProperty("role_name")
|
||||
private String name;
|
||||
|
||||
|
@ -836,7 +836,7 @@ public class HTTPVaultConnectorTest {
|
||||
String roleName = "TestRole";
|
||||
|
||||
/* Create role model */
|
||||
AppRole role = new AppRoleBuilder(roleName).build();
|
||||
AppRole role = AppRole.builder(roleName).build();
|
||||
|
||||
/* Create role */
|
||||
try {
|
||||
|
Reference in New Issue
Block a user