Class AppRoleSecret


  • public final class AppRoleSecret
    extends Object
    Vault AppRole role metamodel.
    Since:
    0.4.0
    Author:
    Stefan Kalscheuer
    • Constructor Detail

      • AppRoleSecret

        public AppRoleSecret()
        Construct empty AppRoleSecret object.
      • AppRoleSecret

        public AppRoleSecret​(String id)
        Construct AppRoleSecret with secret ID.
        Parameters:
        id - Secret ID
      • AppRoleSecret

        public AppRoleSecret​(String id,
                             Map<String,​Object> metadata,
                             List<String> cidrList)
        Construct AppRoleSecret with ID and metadata.
        Parameters:
        id - Secret ID
        metadata - Secret metadata
        cidrList - List of subnets in CIDR notation, the role is bound to
    • Method Detail

      • getId

        public String getId()
        Returns:
        Secret ID
      • getAccessor

        public String getAccessor()
        Returns:
        Secret accessor
      • getMetadata

        public Map<String,​Object> getMetadata()
        Returns:
        Secret metadata
      • getCidrList

        public List<String> getCidrList()
        Returns:
        List of bound subnets in CIDR notation
      • 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