Class OpenSamlCredentialTransformerFunction
java.lang.Object
se.swedenconnect.security.credential.opensaml.OpenSamlCredentialTransformerFunction
- All Implemented Interfaces:
Function<PkiCredential,
X509Credential>
public class OpenSamlCredentialTransformerFunction
extends Object
implements Function<PkiCredential,X509Credential>
Function that transform a
PkiCredential
into an OpenSAML X509Credential
.- Author:
- Martin Lindström
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Default implementation of the function getting the SAML entityID to assign. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(PkiCredential credential) Transforms the suppliedPkiCredential
into anX509Credential
.void
setEntityIdFunction
(Function<PkiCredential, String> entityIdFunction) Assigns the function that gets the SAML entity ID to add to the OpenSAML credential.
-
Constructor Details
-
OpenSamlCredentialTransformerFunction
public OpenSamlCredentialTransformerFunction()
-
-
Method Details
-
apply
Transforms the suppliedPkiCredential
into anX509Credential
.- Specified by:
apply
in interfaceFunction<PkiCredential,
X509Credential>
-
setEntityIdFunction
Assigns the function that gets the SAML entity ID to add to the OpenSAML credential.The default implementation is the
OpenSamlCredentialTransformerFunction.DefaultEntityIdFunction
.- Parameters:
entityIdFunction
- the function
-