Class DefaultPunchOutAuthenticationVerifier
java.lang.Object
de.hybris.platform.b2b.punchout.actions.inbound.DefaultPunchOutAuthenticationVerifier
Authenticates information in the cXML.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanauthenticate(List<Credential> credentials, boolean verifySharedSecret) Matches the given credentials against the configured ones in the system.protected booleanauthenticateSender(List<Credential> credentials) Matches the given credentials against the configured ones in the system.protected PunchOutCredentialServicevoidsetPunchOutCredentialService(PunchOutCredentialService punchOutCredentialService) voidExtracts the header information and matches the sender details with the configuration.
-
Constructor Details
-
DefaultPunchOutAuthenticationVerifier
public DefaultPunchOutAuthenticationVerifier()
-
-
Method Details
-
verify
Extracts the header information and matches the sender details with the configuration.- Parameters:
request- the CXML request message
-
authenticate
Matches the given credentials against the configured ones in the system. It is necessary for at least one of the credentials to match.- Parameters:
credentials- the credentials to checkverifySharedSecret- set to true verify shared secret, false to not- Returns:
- true if at least one matches
-
authenticateSender
Matches the given credentials against the configured ones in the system. It is necessary for at least one of the credentials to match.- Parameters:
credentials- the credentials to check- Returns:
- true if at least one matches
-
getPunchOutCredentialService
-
setPunchOutCredentialService
-