Class AppRoleSecret
- java.lang.Object
-
- de.stklcode.jvault.connector.model.AppRoleSecret
-
public final class AppRoleSecret extends Object
Vault AppRole role metamodel.- Since:
- 0.4.0
- Author:
- Stefan Kalscheuer
-
-
Constructor Summary
Constructors Constructor Description AppRoleSecret()
Construct emptyAppRoleSecret
object.AppRoleSecret(String id)
ConstructAppRoleSecret
with secret ID.AppRoleSecret(String id, Map<String,Object> metadata, List<String> cidrList)
ConstructAppRoleSecret
with ID and metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessor()
List<String>
getCidrList()
String
getCidrListString()
String
getCreationTime()
String
getExpirationTime()
String
getId()
String
getLastUpdatedTime()
Map<String,Object>
getMetadata()
Integer
getNumUses()
Integer
getTtl()
void
setCidrList(List<String> cidrList)
-
-
-
Constructor Detail
-
AppRoleSecret
public AppRoleSecret()
Construct emptyAppRoleSecret
object.
-
AppRoleSecret
public AppRoleSecret(String id)
ConstructAppRoleSecret
with secret ID.- Parameters:
id
- Secret ID
-
-
Method Detail
-
getId
public String getId()
- Returns:
- Secret ID
-
getAccessor
public String getAccessor()
- Returns:
- Secret accessor
-
setCidrList
public void setCidrList(List<String> cidrList)
- Parameters:
cidrList
- List of subnets in CIDR notation
-
getCidrListString
public String getCidrListString()
- Returns:
- List of bound subnets in CIDR notation as comma-separated
String
-
getCreationTime
public String getCreationTime()
- Returns:
- Creation time
-
getExpirationTime
public String getExpirationTime()
- Returns:
- Expiration time
-
getLastUpdatedTime
public String getLastUpdatedTime()
- Returns:
- Time of last update
-
getNumUses
public Integer getNumUses()
- Returns:
- Number of uses
-
getTtl
public Integer getTtl()
- Returns:
- Time-to-live
-
-