Class SigningKey
java.lang.Object
io.deeplumen.ucp.models.discovery.SigningKey
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAlg()Algorithm (e.g., 'ES256', 'RS256').getCrv()Curve name for EC keys (e.g., 'P-256').getE()Exponent for RSA public keys (base64url encoded).getKid()Key ID.getKty()Key type (e.g., 'EC', 'RSA').getN()Modulus for RSA public keys (base64url encoded).getUse()Key usage.getX()X coordinate for EC public keys (base64url encoded).getY()Y coordinate for EC public keys (base64url encoded).inthashCode()voidsetAdditionalProperty(String name, Object value) voidAlgorithm (e.g., 'ES256', 'RS256').voidCurve name for EC keys (e.g., 'P-256').voidExponent for RSA public keys (base64url encoded).voidKey ID.voidKey type (e.g., 'EC', 'RSA').voidModulus for RSA public keys (base64url encoded).voidsetUse(SigningKey.Use use) Key usage.voidX coordinate for EC public keys (base64url encoded).voidY coordinate for EC public keys (base64url encoded).toString()withAdditionalProperty(String name, Object value) withUse(SigningKey.Use use)
-
Constructor Details
-
SigningKey
public SigningKey()
-
-
Method Details
-
getKid
Key ID. Referenced in signature headers to identify which key to use for verification. (Required) -
setKid
Key ID. Referenced in signature headers to identify which key to use for verification. (Required) -
withKid
-
getKty
Key type (e.g., 'EC', 'RSA'). (Required) -
setKty
Key type (e.g., 'EC', 'RSA'). (Required) -
withKty
-
getCrv
Curve name for EC keys (e.g., 'P-256'). -
setCrv
Curve name for EC keys (e.g., 'P-256'). -
withCrv
-
getX
X coordinate for EC public keys (base64url encoded). -
setX
X coordinate for EC public keys (base64url encoded). -
withX
-
getY
Y coordinate for EC public keys (base64url encoded). -
setY
Y coordinate for EC public keys (base64url encoded). -
withY
-
getN
Modulus for RSA public keys (base64url encoded). -
setN
Modulus for RSA public keys (base64url encoded). -
withN
-
getE
Exponent for RSA public keys (base64url encoded). -
setE
Exponent for RSA public keys (base64url encoded). -
withE
-
getUse
Key usage. Should be 'sig' for signing keys. -
setUse
Key usage. Should be 'sig' for signing keys. -
withUse
-
getAlg
Algorithm (e.g., 'ES256', 'RS256'). -
setAlg
Algorithm (e.g., 'ES256', 'RS256'). -
withAlg
-
getAdditionalProperties
-
setAdditionalProperty
-
withAdditionalProperty
-
toString
-
hashCode
public int hashCode() -
equals
-