case class RootGenerationProgress(started: Boolean, nonce: String, progress: Int, required: Int, complete: Boolean, encodedToken: String, encodedRootToken: String, pgpFingerprint: String, otp: String, otpLength: Int) extends Product with Serializable
- started
whether a root generation attempt has been started.
- nonce
the nonce for the current attempt.
- progress
how many unseal keys have been provided for this generation attempt.
- required
how many unseal keys must be provided to complete the generation attempt.
- complete
whether the attempt is complete.
- encodedToken
the encoded token. The token will either be encrypted using PGP or XOR'd using the OTP.
- encodedRootToken
the encoded root token. The token will either be encrypted using PGP or XOR'd using the OTP.
- pgpFingerprint
the PGP fingerprint used to encrypt the final root token. This will be an empty string unless a PGP key is being used to encrypt the final root token.
- otp
the one-time-password (OTP) being used to encode the final root token. The OTP is a base64 string, with length of
otpLength
. The raw bytes (char codes) of the token will be XOR'd with this value before being returned as a response to the final unseal key, encoded as base64. This field will only be returned once, on the response to the start request.- otpLength
the size of the OTP.
- Alphabetic
- By Inheritance
- RootGenerationProgress
- Serializable
- Product
- Equals
- AnyRef
- Any
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RootGenerationProgress(started: Boolean, nonce: String, progress: Int, required: Int, complete: Boolean, encodedToken: String, encodedRootToken: String, pgpFingerprint: String, otp: String, otpLength: Int)
- started
whether a root generation attempt has been started.
- nonce
the nonce for the current attempt.
- progress
how many unseal keys have been provided for this generation attempt.
- required
how many unseal keys must be provided to complete the generation attempt.
- complete
whether the attempt is complete.
- encodedToken
the encoded token. The token will either be encrypted using PGP or XOR'd using the OTP.
- encodedRootToken
the encoded root token. The token will either be encrypted using PGP or XOR'd using the OTP.
- pgpFingerprint
the PGP fingerprint used to encrypt the final root token. This will be an empty string unless a PGP key is being used to encrypt the final root token.
- otp
the one-time-password (OTP) being used to encode the final root token. The OTP is a base64 string, with length of
otpLength
. The raw bytes (char codes) of the token will be XOR'd with this value before being returned as a response to the final unseal key, encoded as base64. This field will only be returned once, on the response to the start request.- otpLength
the size of the OTP.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ->[B](y: B): (RootGenerationProgress, B)
- Implicit
- This member is added by an implicit conversion from RootGenerationProgress toArrowAssoc[RootGenerationProgress] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val complete: Boolean
- def decode(otp: String = this.otp): Option[String]
Decode the
encodedRootToken
of thisRootGenerationProgress
using the providedotp
.Decode the
encodedRootToken
of thisRootGenerationProgress
using the providedotp
. If a PGP key was passed at the start of the root generation attempt, this method will do nothing.- returns
the decoded root token. If
encodedRootToken
orotp
are empty this method will return aNone
.
- val encodedRootToken: String
- val encodedToken: String
- def ensuring(cond: (RootGenerationProgress) => Boolean, msg: => Any): RootGenerationProgress
- Implicit
- This member is added by an implicit conversion from RootGenerationProgress toEnsuring[RootGenerationProgress] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (RootGenerationProgress) => Boolean): RootGenerationProgress
- Implicit
- This member is added by an implicit conversion from RootGenerationProgress toEnsuring[RootGenerationProgress] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): RootGenerationProgress
- Implicit
- This member is added by an implicit conversion from RootGenerationProgress toEnsuring[RootGenerationProgress] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): RootGenerationProgress
- Implicit
- This member is added by an implicit conversion from RootGenerationProgress toEnsuring[RootGenerationProgress] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from RootGenerationProgress toStringFormat[RootGenerationProgress] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def inProgress: Boolean
Whether this root generation is in progress.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nonce: String
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val otp: String
- val otpLength: Int
- val pgpFingerprint: String
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val progress: Int
- val required: Int
- val started: Boolean
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def →[B](y: B): (RootGenerationProgress, B)
- Implicit
- This member is added by an implicit conversion from RootGenerationProgress toArrowAssoc[RootGenerationProgress] 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.