Class AppRole


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

      • getName

        public String getName()
        Returns:
        the role name
      • getId

        public String getId()
        Returns:
        the role ID
      • getBindSecretId

        public Boolean getBindSecretId()
        Returns:
        bind secret ID
      • getTokenBoundCidrs

        public List<String> getTokenBoundCidrs()
        Returns:
        list of bound CIDR subnets of associated tokens
        Since:
        0.9
      • setBoundCidrs

        public void setBoundCidrs​(List<String> boundCidrList)
        Parameters:
        boundCidrList - list of subnets in CIDR notation to bind role to
        Since:
        0.9
      • getTokenBoundCidrsString

        public String getTokenBoundCidrsString()
        Returns:
        list of subnets in CIDR notation as comma-separated String
        Since:
        0.9
      • getSecretIdBoundCidrs

        public List<String> getSecretIdBoundCidrs()
        Returns:
        list of bound CIDR subnets
        Since:
        0.8 replaces getBoundCidrList()
      • setSecretIdBoundCidrs

        public void setSecretIdBoundCidrs​(List<String> secretIdBoundCidrs)
        Parameters:
        secretIdBoundCidrs - List of subnets in CIDR notation to bind secrets of this role to.
        Since:
        0.8 replaces setBoundCidrList(List)
      • getSecretIdBoundCidrsString

        public String getSecretIdBoundCidrsString()
        Returns:
        List of subnets in CIDR notation as comma-separated String
        Since:
        0.8 replaces getBoundCidrListString() ()}
      • getTokenPolicies

        public List<String> getTokenPolicies()
        Returns:
        list of token policies
        Since:
        0.9
      • setTokenPolicies

        public void setTokenPolicies​(List<String> tokenPolicies)
        Parameters:
        tokenPolicies - list of token policies
        Since:
        0.9
      • getTokenPoliciesString

        public String getTokenPoliciesString()
        Returns:
        list of policies as comma-separated String
        Since:
        0.9
      • getSecretIdNumUses

        public Integer getSecretIdNumUses()
        Returns:
        maximum number of uses per secret
      • getSecretIdTtl

        public Integer getSecretIdTtl()
        Returns:
        maximum TTL in seconds for secrets
      • getEnableLocalSecretIds

        public Boolean getEnableLocalSecretIds()
        Returns:
        Enable local secret IDs?
        Since:
        0.9
      • getTokenTtl

        public Integer getTokenTtl()
        Returns:
        token TTL in seconds
      • getTokenMaxTtl

        public Integer getTokenMaxTtl()
        Returns:
        maximum token TTL in seconds, including renewals
      • getTokenExplicitMaxTtl

        public Integer getTokenExplicitMaxTtl()
        Returns:
        explicit maximum token TTL in seconds, including renewals
        Since:
        0.9
      • getTokenNoDefaultPolicy

        public Boolean getTokenNoDefaultPolicy()
        Returns:
        enable default policy for token?
        Since:
        0.9
      • getTokenNumUses

        public Integer getTokenNumUses()
        Returns:
        number of uses for token
        Since:
        0.9
      • getTokenPeriod

        public Integer getTokenPeriod()
        Returns:
        duration in seconds, if specified
        Since:
        0.9
      • getTokenType

        public String getTokenType()
        Returns:
        duration in seconds, if specified
        Since:
        0.9