Packages

final class Token[F[_]] extends AnyRef

Source
Token.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Token
  2. AnyRef
  3. 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 Token(path: String, uri: Uri)(implicit arg0: Concurrent[F], arg1: Client[F], token: Raw)

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): (Token[F], B)
    Implicit
    This member is added by an implicit conversion from Token[F] toArrowAssoc[Token[F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. val accessors: F[List[String]]

    returns

    a list with all token accessor. This requires sudo capability, and access to it should be tightly controlled as the accessors can be used to revoke very large numbers of tokens and their associated leases at once.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def create(options: CreateOptions): F[Auth]

    Creates a new token.

    Creates a new token. Certain options are only available when called by a root token. Orphan tokens require a root token to be created. However invoking createOrphan allows one to be created without a root token. If a role is used, the token will be created against the specified role name; this may override options set during this call.

    options

    the options to use while creating the token.

    returns

    the created token and its properties.

  9. def createOrphan(options: CreateOptions): F[Auth]

    Creates a new token.

    Creates a new token. Certain options are only available when called by a root token. If a role is used, the token will be created against the specified role name; this may override options set during this call.

    options

    the options to use while creating the token.

    returns

    the created token and its properties

  10. def createRole(role: String, options: CreateOptions): F[Auth]

    Creates a new token.

    Creates a new token. Certain options are only available when called by a root token. If a role is used, the token will be created against the specified role name; this may override options set during this call.

    options

    the options to use while creating the token.

    returns

    the created token and its properties

  11. def ensuring(cond: (Token[F]) => Boolean, msg: => Any): Token[F]
    Implicit
    This member is added by an implicit conversion from Token[F] toEnsuring[Token[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (Token[F]) => Boolean): Token[F]
    Implicit
    This member is added by an implicit conversion from Token[F] toEnsuring[Token[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: => Any): Token[F]
    Implicit
    This member is added by an implicit conversion from Token[F] toEnsuring[Token[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): Token[F]
    Implicit
    This member is added by an implicit conversion from Token[F] toEnsuring[Token[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Token[F] toStringFormat[Token[F]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def listAccessorsWithRootPolicy: F[List[models.Token]]

    Iterates through all token accessors, looks up the accessor and only returns the ones containing the root policy.

    Iterates through all token accessors, looks up the accessor and only returns the ones containing the root policy. This is a very heavy operation. It should normally be invoked with a root token. And it is very helpful to clean dangling root tokens.

  23. def lookup(token: String): F[Option[models.Token]]

    token

    the token for which to retrieve information.

    returns

    returns information about the token.

  24. def lookupAccessor(accessor: String): F[Option[models.Token]]

    accessor

    the token accessor for which to retrieve the information.

    returns

    returns information about the client token from the accessor.

  25. val lookupSelf: F[models.Token]

    returns

    returns information about the current client token.

  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. val path: String
  30. def renew(token: String, increment: Option[FiniteDuration] = None): F[Auth]

    Renews a lease associated with a token.

    Renews a lease associated with a token. This is used to prevent the expiration of a token, and the automatic revocation of it. Token renewal is possible only if there is a lease associated with it.

    token

    the token to renew.

    increment

    An optional requested lease increment can be provided. This increment may be ignored.

    returns

    the renewed token information.

  31. def renewAccessor(accessor: String, increment: Option[FiniteDuration]): F[Auth]

    Renews a lease associated with a token using its accessor.

    Renews a lease associated with a token using its accessor. This is used to prevent the expiration of a token, and the automatic revocation of it. Token renewal is possible only if there is a lease associated with it.

    accessor

    Accessor associated with the token to renew.

    increment

    An optional requested lease increment can be provided.

    returns

    returns information about the client token from the accessor.

  32. def renewSelf(increment: Option[FiniteDuration] = None): F[Auth]

    Renews a lease associated with the calling token.

    Renews a lease associated with the calling token. This is used to prevent the expiration of a token, and the automatic revocation of it. Token renewal is possible only if there is a lease associated with it.

    increment

    An optional requested lease increment can be provided. This increment may be ignored.

    returns

    the renewed token information.

  33. def revoke(token: String): F[Unit]

    Revokes a token and all child tokens.

    Revokes a token and all child tokens. When the token is revoked, all dynamic secrets generated with it are also revoked.

    token

    the token to revoke.

  34. def revokeAccessor(accessor: String): F[Unit]

    Revoke the token associated with the accessor and all the child tokens.

    Revoke the token associated with the accessor and all the child tokens. This is meant for purposes where there is no access to token ID but there is need to revoke a token and its children.

    accessor

    Accessor of the token.

  35. val revokeSelf: F[Unit]

    Revokes the token used to call it and all child tokens.

    Revokes the token used to call it and all child tokens. When the token is revoked, all dynamic secrets generated with it are also revoked.

  36. def revokeTokenAndOrphanChildren(token: String): F[Unit]

    Revokes a token but not its child tokens.

    Revokes a token but not its child tokens. When the token is revoked, all secrets generated with it are also revoked. All child tokens are orphaned, but can be revoked sub-sequently using /auth/token/revoke/. This is a root-protected endpoint.

    token

    Token to revoke.

  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. val uri: Uri
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  43. object roles extends RolesCRUD[F, Role]

Deprecated Value Members

  1. def [B](y: B): (Token[F], B)
    Implicit
    This member is added by an implicit conversion from Token[F] toArrowAssoc[Token[F]] 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 AnyRef

Inherited from Any

Inherited by implicit conversion StringFormat fromToken[F] to StringFormat[Token[F]]

Inherited by implicit conversion Ensuring fromToken[F] to Ensuring[Token[F]]

Inherited by implicit conversion ArrowAssoc fromToken[F] to ArrowAssoc[Token[F]]

Ungrouped