Class JwkTransformerFunction.DefaultKeyUseFunction
java.lang.Object
se.swedenconnect.security.credential.nimbus.JwkTransformerFunction.DefaultKeyUseFunction
- All Implemented Interfaces:
Function<PkiCredential,
KeyUse>
- Enclosing class:
JwkTransformerFunction
public static final class JwkTransformerFunction.DefaultKeyUseFunction
extends Object
implements Function<PkiCredential,KeyUse>
Default implementation of the function that returns the
KeyUse
for a credential.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(PkiCredential credential) Will use thekey-use
property from the metadata, and if not present, use the certificate to calculate the usage.
-
Constructor Details
-
DefaultKeyUseFunction
public DefaultKeyUseFunction()
-
-
Method Details
-
apply
Will use thekey-use
property from the metadata, and if not present, use the certificate to calculate the usage.- Specified by:
apply
in interfaceFunction<PkiCredential,
KeyUse>
-