public final class AppRole extends Object
Constructor and Description |
---|
AppRole()
Construct empty
AppRole object. |
AppRole(String name,
String id,
Boolean bindSecretId,
List<String> secretIdBoundCidrs,
List<String> policies,
Integer secretIdNumUses,
Integer secretIdTtl,
Integer tokenTtl,
Integer tokenMaxTtl,
Integer period)
Construct complete
AppRole object. |
Modifier and Type | Method and Description |
---|---|
static AppRoleBuilder |
builder(String name)
Get
AppRoleBuilder instance. |
Boolean |
getBindSecretId() |
List<String> |
getBoundCidrList()
Deprecated.
Use
getSecretIdBoundCidrs() instead, as this parameter is deprecated in Vault. |
String |
getBoundCidrListString()
Deprecated.
Use
getSecretIdBoundCidrsString() instead, as this parameter is deprecated in Vault. |
String |
getId() |
String |
getName() |
Integer |
getPeriod() |
List<String> |
getPolicies() |
String |
getPoliciesString() |
List<String> |
getSecretIdBoundCidrs() |
String |
getSecretIdBoundCidrsString() |
Integer |
getSecretIdNumUses() |
Integer |
getSecretIdTtl() |
Integer |
getTokenMaxTtl() |
Integer |
getTokenTtl() |
void |
setBoundCidrList(List<String> boundCidrList)
Deprecated.
Use
setSecretIdBoundCidrs(List) instead, as this parameter is deprecated in Vault. |
void |
setPolicies(List<String> policies) |
void |
setSecretIdBoundCidrs(List<String> secretIdBoundCidrs) |
public AppRole()
AppRole
object.public AppRole(String name, String id, Boolean bindSecretId, List<String> secretIdBoundCidrs, List<String> policies, Integer secretIdNumUses, Integer secretIdTtl, Integer tokenTtl, Integer tokenMaxTtl, Integer period)
AppRole
object.name
- Role name (required)id
- Role ID (optional)bindSecretId
- Bind secret ID (optional)secretIdBoundCidrs
- Whitelist of subnets in CIDR notation (optional)policies
- List of policies (optional)secretIdNumUses
- Maximum number of uses per secret (optional)secretIdTtl
- Maximum TTL in seconds for secrets (optional)tokenTtl
- Token TTL in seconds (optional)tokenMaxTtl
- Maximum token TTL in seconds, including renewals (optional)period
- Duration in seconds, if set the token is a periodic token (optional)public static AppRoleBuilder builder(String name)
AppRoleBuilder
instance.name
- Role name.public String getName()
public String getId()
public Boolean getBindSecretId()
@Deprecated public List<String> getBoundCidrList()
getSecretIdBoundCidrs()
instead, as this parameter is deprecated in Vault.@Deprecated public void setBoundCidrList(List<String> boundCidrList)
setSecretIdBoundCidrs(List)
instead, as this parameter is deprecated in Vault.boundCidrList
- list of subnets in CIDR notation to bind role to@Deprecated public String getBoundCidrListString()
getSecretIdBoundCidrsString()
instead, as this parameter is deprecated in Vault.String
public List<String> getSecretIdBoundCidrs()
getBoundCidrList()
public void setSecretIdBoundCidrs(List<String> secretIdBoundCidrs)
secretIdBoundCidrs
- List of subnets in CIDR notation to bind secrets of this role to.setBoundCidrList(List)
public String getSecretIdBoundCidrsString()
String
getBoundCidrListString()
()}public String getPoliciesString()
String
public Integer getSecretIdNumUses()
public Integer getSecretIdTtl()
public Integer getTokenTtl()
public Integer getTokenMaxTtl()
public Integer getPeriod()
Copyright © 2016–2019. All rights reserved.