java.lang.Object
de.stklcode.jvault.connector.model.AppRoleSecret
- All Implemented Interfaces:
Serializable
Vault AppRole role metamodel.
- Since:
- 0.4.0, 1.1 implements
Serializable
- Author:
- Stefan Kalscheuer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct emptyAppRoleSecret
object.AppRoleSecret
(String id) ConstructAppRoleSecret
with secret ID.ConstructAppRoleSecret
with ID and metadata. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
getTtl()
int
hashCode()
void
setCidrList
(List<String> cidrList) void
setTokenBoundCidrs
(List<String> boundCidrList)
-
Constructor Details
-
AppRoleSecret
public AppRoleSecret()Construct emptyAppRoleSecret
object. -
AppRoleSecret
ConstructAppRoleSecret
with secret ID.- Parameters:
id
- Secret ID
-
AppRoleSecret
ConstructAppRoleSecret
with ID and metadata.- Parameters:
id
- Secret IDmetadata
- Secret metadatacidrList
- List of subnets in CIDR notation, the role is bound to
-
-
Method Details
-
getId
- Returns:
- Secret ID
-
getAccessor
- Returns:
- Secret accessor
-
getMetadata
- Returns:
- Secret metadata
-
getCidrList
- Returns:
- List of bound subnets in CIDR notation
-
setCidrList
- Parameters:
cidrList
- List of subnets in CIDR notation
-
getCidrListString
- Returns:
- List of bound subnets in CIDR notation as comma-separated
String
-
getTokenBoundCidrs
- Returns:
- list of bound CIDR subnets of associated tokens
- Since:
- 1.5.3
-
setTokenBoundCidrs
- Parameters:
boundCidrList
- list of subnets in CIDR notation to bind role to- Since:
- 1.5.3
-
getTokenBoundCidrsString
- Returns:
- list of subnets in CIDR notation as comma-separated
String
- Since:
- 1.5.3
-
getCreationTime
- Returns:
- Creation time
-
getExpirationTime
- Returns:
- Expiration time
-
getLastUpdatedTime
- Returns:
- Time of last update
-
getNumUses
- Returns:
- Number of uses
-
getTtl
- Returns:
- Time-to-live
-
equals
-
hashCode
public int hashCode()
-