Packages

case class CreateOptions(displayName: String = "token", policies: List[String] = List.empty, noDefaultPolicy: Boolean = false, noParent: Boolean = false, numUses: Int = 0, renewable: Boolean = true, ttl: Duration = Duration.Undefined, explicitMaxTtl: Duration = Duration.Undefined, period: Duration = Duration.Undefined, id: Option[String] = None, meta: Map[String, String] = Map.empty) extends Product with Serializable

displayName

The display name of the token.

policies

A list of policies for the token. This must be a subset of the policies belonging to the token making the request, unless root. If not specified, defaults to all the policies of the calling token.

noDefaultPolicy

If true the default policy will not be contained in this token's policy set.

noParent

If true and set by a root caller, the token will not have the parent token of the caller. This creates a token with no parent.

numUses

The maximum uses for the given token. This can be used to create a one-time-token or limited use token. The value of 0 has no limit to the number of uses.

renewable

Set to false to disable the ability of the token to be renewed past its initial TTL. Setting the value to true will allow the token to be renewable up to the system/mount maximum TTL.

ttl

The TTL period of the token, provided as "1h", where hour is the largest suffix. If not provided, the token is valid for the default lease TTL, or indefinitely if the root policy is used.

explicitMaxTtl

If set, the token will have an explicit max TTL set upon it. This maximum token TTL cannot be changed later, and unlike with normal tokens, updates to the system/mount max TTL value will have no effect at renewal time -- the token will never be able to be renewed or used past the value set at issue time.

period

If specified, the token will be periodic; it will have no maximum TTL (unless an "explicit-max-ttl" is also set) but every renewal will use the given period. Requires a root/sudo token to use.

id

The ID of the client token. Can only be specified by a root token. Otherwise, the token ID is a randomly generated value.

meta

A map of string to string valued metadata. This is passed through to the audit devices.

Source
CreateOptions.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CreateOptions
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
Implicitly
  1. by StringFormat
  2. by Ensuring
  3. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CreateOptions(displayName: String = "token", policies: List[String] = List.empty, noDefaultPolicy: Boolean = false, noParent: Boolean = false, numUses: Int = 0, renewable: Boolean = true, ttl: Duration = Duration.Undefined, explicitMaxTtl: Duration = Duration.Undefined, period: Duration = Duration.Undefined, id: Option[String] = None, meta: Map[String, String] = Map.empty)

    displayName

    The display name of the token.

    policies

    A list of policies for the token. This must be a subset of the policies belonging to the token making the request, unless root. If not specified, defaults to all the policies of the calling token.

    noDefaultPolicy

    If true the default policy will not be contained in this token's policy set.

    noParent

    If true and set by a root caller, the token will not have the parent token of the caller. This creates a token with no parent.

    numUses

    The maximum uses for the given token. This can be used to create a one-time-token or limited use token. The value of 0 has no limit to the number of uses.

    renewable

    Set to false to disable the ability of the token to be renewed past its initial TTL. Setting the value to true will allow the token to be renewable up to the system/mount maximum TTL.

    ttl

    The TTL period of the token, provided as "1h", where hour is the largest suffix. If not provided, the token is valid for the default lease TTL, or indefinitely if the root policy is used.

    explicitMaxTtl

    If set, the token will have an explicit max TTL set upon it. This maximum token TTL cannot be changed later, and unlike with normal tokens, updates to the system/mount max TTL value will have no effect at renewal time -- the token will never be able to be renewed or used past the value set at issue time.

    period

    If specified, the token will be periodic; it will have no maximum TTL (unless an "explicit-max-ttl" is also set) but every renewal will use the given period. Requires a root/sudo token to use.

    id

    The ID of the client token. Can only be specified by a root token. Otherwise, the token ID is a randomly generated value.

    meta

    A map of string to string valued metadata. This is passed through to the audit devices.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ->[B](y: B): (CreateOptions, B)
    Implicit
    This member is added by an implicit conversion from CreateOptions toArrowAssoc[CreateOptions] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val displayName: String
  8. def ensuring(cond: (CreateOptions) => Boolean, msg: => Any): CreateOptions
    Implicit
    This member is added by an implicit conversion from CreateOptions toEnsuring[CreateOptions] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (CreateOptions) => Boolean): CreateOptions
    Implicit
    This member is added by an implicit conversion from CreateOptions toEnsuring[CreateOptions] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: => Any): CreateOptions
    Implicit
    This member is added by an implicit conversion from CreateOptions toEnsuring[CreateOptions] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): CreateOptions
    Implicit
    This member is added by an implicit conversion from CreateOptions toEnsuring[CreateOptions] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. val explicitMaxTtl: Duration
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from CreateOptions toStringFormat[CreateOptions] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. val id: Option[String]
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val meta: Map[String, String]
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. val noDefaultPolicy: Boolean
  22. val noParent: Boolean
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. val numUses: Int
  26. val period: Duration
  27. val policies: List[String]
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. val renewable: Boolean
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. val ttl: Duration
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def [B](y: B): (CreateOptions, B)
    Implicit
    This member is added by an implicit conversion from CreateOptions toArrowAssoc[CreateOptions] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringFormat fromCreateOptions to StringFormat[CreateOptions]

Inherited by implicit conversion Ensuring fromCreateOptions to Ensuring[CreateOptions]

Inherited by implicit conversion ArrowAssoc fromCreateOptions to ArrowAssoc[CreateOptions]

Ungrouped