Class TokenResponse

    • Method Detail

      • token

        public VaultToken token()
        Token that was received.
        Returns:
        the token
      • accessor

        public String accessor()
        Accessor.
        Returns:
        accessor
      • policies

        public List<String> policies()
        List of policy names.
        Returns:
        policies
      • tokenPolicies

        public List<String> tokenPolicies()
        List of token policy names.
        Returns:
        token policies
      • metadata

        public Map<String,​String> metadata()
        Metadata. When a token is created with metadata attached, it is available through this method.
        Returns:
        key/values of metadata
      • entityId

        public String entityId()
        Entity id.
        Returns:
        entity id
      • orphan

        public boolean orphan()
        Whether the token is orphan (no parent).
        Returns:
        true if orphan