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
ProofOfOwnershipOnlyusage 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 usagesand theallowed usagesis not empty, guaranteeing that at least one usage is shared.Ensures that the intersection of a
key's usagesand theallowed usagesis 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
ProofOfOwnershiplike any other usage and attempts to match it.The only case where
ProofOfOwnershipcan be part of the allowed usages is when signing or verifying topology mappings such asOwnerToKeyMappingsorPartyToKeyMappings, where the keys must self-sign the request. - def encodeUsageForHash(usage: NonEmpty[Set[SigningKeyUsage]]): ByteString
Encodes a non-empty set of signing key usages into a ByteString for hashing.
Encodes a non-empty set of signing key usages into a ByteString for hashing. The usages are converted to their proto enum integer values and sorted to ensure determinism.
- 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 usagesand theallowed usages, considering only relevant usages and excluding the internalProofOfOwnershiptype.Verifies that there is at least one common usage between a
key's usagesand theallowed usages, considering only relevant usages and excluding the internalProofOfOwnershiptype.ProofOfOwnershipshould 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])
- 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