Class DefaultPunchOutAuthenticationVerifier

java.lang.Object
de.hybris.platform.b2b.punchout.actions.inbound.DefaultPunchOutAuthenticationVerifier

public class DefaultPunchOutAuthenticationVerifier extends Object
Authenticates information in the cXML.
  • Constructor Details

    • DefaultPunchOutAuthenticationVerifier

      public DefaultPunchOutAuthenticationVerifier()
  • Method Details

    • verify

      public void verify(CXML request)
      Extracts the header information and matches the sender details with the configuration.
      Parameters:
      request - the CXML request message
    • authenticate

      protected boolean authenticate(List<Credential> credentials, boolean verifySharedSecret)
      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
      verifySharedSecret - set to true verify shared secret, false to not
      Returns:
      true if at least one matches
    • authenticateSender

      protected boolean authenticateSender(List<Credential> credentials)
      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

      protected PunchOutCredentialService getPunchOutCredentialService()
    • setPunchOutCredentialService

      public void setPunchOutCredentialService(PunchOutCredentialService punchOutCredentialService)