java.lang.Object
de.stklcode.jvault.connector.model.AppRole
All Implemented Interfaces:
Serializable

public final class AppRole extends Object implements Serializable
Vault AppRole role metamodel.
Since:
0.4.0, 1.1 implements Serializable
Author:
Stefan Kalscheuer
See Also:
  • Constructor Details

  • Method Details

    • builder

      public static AppRole.Builder builder(String name)
      Get AppRole.Builder instance.
      Parameters:
      name - Role name.
      Returns:
      AppRole Builder.
      Since:
      0.8
    • 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
    • getLocalSecretIds

      public Boolean getLocalSecretIds()
      Returns:
      Enable local secret IDs?
      Since:
      0.9, 1.3 renamed to getLocalSecretIds()
    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object