Package org.keycloak.broker.oid4vp
Record Class EphemeralKey
java.lang.Object
java.lang.Record
org.keycloak.broker.oid4vp.EphemeralKey
The per request response encryption key for the
direct_post.jwt response mode. The public
JWK is advertised to the wallet in the request object client metadata, the private key stays with
the verifier to decrypt the response. Generation takes no algorithm because HAIP pins the key
management to JWEConstants.ECDH_ES over secp256r1. The advertised content encryption
algorithms only select the length of the content key derived during key agreement, so the one key
serves them all.-
Constructor Summary
ConstructorsConstructorDescriptionEphemeralKey(String kid, JWK publicJwk, String privateKeyPkcs8Base64) Creates an instance of aEphemeralKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static EphemeralKeyfinal inthashCode()Returns a hash code value for this object.kid()Returns the value of thekidrecord component.Returns the value of theprivateKeyPkcs8Base64record component.Returns the value of thepublicJwkrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EphemeralKey
Creates an instance of aEphemeralKeyrecord class.- Parameters:
kid- the value for thekidrecord componentpublicJwk- the value for thepublicJwkrecord componentprivateKeyPkcs8Base64- the value for theprivateKeyPkcs8Base64record component
-
-
Method Details
-
generate
-
privateKey
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
kid
Returns the value of thekidrecord component.- Returns:
- the value of the
kidrecord component
-
publicJwk
Returns the value of thepublicJwkrecord component.- Returns:
- the value of the
publicJwkrecord component
-
privateKeyPkcs8Base64
Returns the value of theprivateKeyPkcs8Base64record component.- Returns:
- the value of the
privateKeyPkcs8Base64record component
-