Class JwkTransformerFunction.DefaultKeyOpsFunction
java.lang.Object
se.swedenconnect.security.credential.nimbus.JwkTransformerFunction.DefaultKeyOpsFunction
- All Implemented Interfaces:
Function<PkiCredential,
Set<KeyOperation>>
- Enclosing class:
JwkTransformerFunction
public static class JwkTransformerFunction.DefaultKeyOpsFunction
extends Object
implements Function<PkiCredential,Set<KeyOperation>>
Default implementation of the function that returns a set of
KeyOperation
s for a credential.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(PkiCredential credential) Returns aSet
ofKeyOperation
s if the metadata propertykey-ops
is assigned to any of the following: ACollection
ofKeyOperation
objects. A singleKeyOperation
object. An array ofKeyOperation
objects. A comma separated string with key operations (see valid string values inKeyOperation
).
-
Constructor Details
-
DefaultKeyOpsFunction
public DefaultKeyOpsFunction()
-
-
Method Details
-
apply
Returns aSet
ofKeyOperation
s if the metadata propertykey-ops
is assigned to any of the following:- A
Collection
ofKeyOperation
objects. - A single
KeyOperation
object. - An array of
KeyOperation
objects. - A comma separated string with key operations (see valid string values in
KeyOperation
).
- Specified by:
apply
in interfaceFunction<PkiCredential,
Set<KeyOperation>>
- A
-