object SigningKeyUsage extends Serializable
- Alphabetic
- By Inheritance
- SigningKeyUsage
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val All: NonEmpty[Set[SigningKeyUsage]]
- val NamespaceOnly: NonEmpty[Set[SigningKeyUsage]]
- val NamespaceOrProofOfOwnership: NonEmpty[Set[SigningKeyUsage]]
- val ProofOfOwnershipOnly: NonEmpty[Set[SigningKeyUsage]]
- val ProtocolOnly: NonEmpty[Set[SigningKeyUsage]]
- val ProtocolWithProofOfOwnership: NonEmpty[Set[SigningKeyUsage]]
- val SequencerAuthenticationOnly: NonEmpty[Set[SigningKeyUsage]]
- def addProofOfOwnership(usage: NonEmpty[Set[SigningKeyUsage]]): NonEmpty[Set[SigningKeyUsage]]
Adds the
ProofOfOwnershipOnly
usage to the list of usages, unless it forms an invalid combination. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def compatibleUsageForSignAndVerify(keyUsage: NonEmpty[Set[SigningKeyUsage]], allowedUsages: NonEmpty[Set[SigningKeyUsage]]): Boolean
Ensures that the intersection of a
key's usages
and theallowed usages
is not empty, guaranteeing that at least one usage is shared.Ensures that the intersection of a
key's usages
and theallowed usages
is not empty, guaranteeing that at least one usage is shared.This function should only be used in the context of signing and verification, as it treats
ProofOfOwnership
like any other usage and attempts to match it.The only case where
ProofOfOwnership
can be part of the allowed usages is when signing or verifying topology mappings such asOwnerToKeyMappings
orPartyToKeyMappings
, where the keys must self-sign the request. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromDbTypeToSigningKeyUsage(dbTypeInt: Int): Option[SigningKeyUsage]
Ignores the identity_delegation usage (dbTypeInt == 1) by returning None.
Ignores the identity_delegation usage (dbTypeInt == 1) by returning None. We can do this because, up until now, identity_delegation has never been the sole usage of a key.
- def fromProtoEnum(field: String, usageP: v30.SigningKeyUsage): ParsingResult[Option[SigningKeyUsage]]
Ignores the identity_delegation usage by returning None.
Ignores the identity_delegation usage by returning None. We can do this because, up until now, identity_delegation has never been the sole usage of a key.
- Annotations
- @nowarn()
- def fromProtoListWithDefault(usages: Seq[v30.SigningKeyUsage]): ParsingResult[NonEmpty[Set[SigningKeyUsage]]]
When deserializing the usages for a signing key, if the usages are empty, we default to allowing all usages to maintain backward compatibility.
- def fromProtoListWithoutDefault(usages: Seq[v30.SigningKeyUsage]): ParsingResult[NonEmpty[Set[SigningKeyUsage]]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isUsageValid(usage: NonEmpty[Set[SigningKeyUsage]]): Boolean
- def matchesRelevantUsages(keyUsage: NonEmpty[Set[SigningKeyUsage]], allowedUsages: NonEmpty[Set[SigningKeyUsage]]): Boolean
Verifies that there is at least one common usage between a
key's usages
and theallowed usages
, considering only relevant usages and excluding the internalProofOfOwnership
type.Verifies that there is at least one common usage between a
key's usages
and theallowed usages
, considering only relevant usages and excluding the internalProofOfOwnership
type.ProofOfOwnership
should only be considered when signing or verifying. This method must be used for all other scenarios, such as filtering or finding keys. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- case object Namespace extends SigningKeyUsage with Product with Serializable
- case object Protocol extends SigningKeyUsage with Product with Serializable
- case object SequencerAuthentication extends SigningKeyUsage with Product with Serializable