Class JwkTransformerFunction.DefaultKeyIdFunction
java.lang.Object
se.swedenconnect.security.credential.nimbus.JwkTransformerFunction.DefaultKeyIdFunction
- All Implemented Interfaces:
Function<PkiCredential,
String>
- Enclosing class:
JwkTransformerFunction
public static class JwkTransformerFunction.DefaultKeyIdFunction
extends Object
implements Function<PkiCredential,String>
Default implementation of the function that returns the key id (JWT
kid
property).-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(PkiCredential credential) If the credential metadata contains akey-id
, this is used, otherwise the function attempts to calculate the RFC 7638 thumbprint, and finally the serial number of the certificate is used for key id-calculation.
-
Constructor Details
-
DefaultKeyIdFunction
public DefaultKeyIdFunction()
-
-
Method Details
-
apply
If the credential metadata contains akey-id
, this is used, otherwise the function attempts to calculate the RFC 7638 thumbprint, and finally the serial number of the certificate is used for key id-calculation.- Specified by:
apply
in interfaceFunction<PkiCredential,
String>
-