Class InboundEncryptionAlgorithmAuditExtractor
java.lang.Object
net.shibboleth.sp.saml.saml2.audit.impl.InboundEncryptionAlgorithmAuditExtractor
- All Implemented Interfaces:
Function<ProfileRequestContext,String>
public class InboundEncryptionAlgorithmAuditExtractor
extends Object
implements Function<ProfileRequestContext,String>
Function that returns the first encryption algorithm found in a SAML message.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<ProfileRequestContext,SAMLObject> Lookup strategy for message to read from. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext input) private StringApply function to anAssertionobject.private Stringapply(EncryptedData encryptedData) Apply function to anEncryptedDataobject.
-
Field Details
-
messageLookupStrategy
Lookup strategy for message to read from.
-
-
Constructor Details
-
InboundEncryptionAlgorithmAuditExtractor
public InboundEncryptionAlgorithmAuditExtractor(@Nonnull Function<ProfileRequestContext, SAMLObject> strategy) Constructor.- Parameters:
strategy- lookup strategy for message
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,String>
-
apply
Apply function to anAssertionobject.- Parameters:
assertion- assertion to interrogate- Returns:
- the format, or null
-
apply
Apply function to anEncryptedDataobject.- Parameters:
encryptedData- object to interrogate- Returns:
- the format, or null
-