Interface PunchOutCredentialService
-
- All Known Implementing Classes:
DefaultPunchOutCredentialService
public interface PunchOutCredentialServiceService to manage entityPunchOutCredentialModel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description B2BCustomerModelgetCustomerForCredential(Credential credential)Get the first validB2BCustomerModelthat is mapped for one of the pair domain and identity contained in the credential and validate the shared secret.B2BCustomerModelgetCustomerForCredentialNoAuth(Credential credential)Get the first validB2BCustomerModelthat is mapped for one of the pair domain and identity contained in the credential without validating the shared secret.PunchOutCredentialModelgetPunchOutCredential(java.lang.String domain, java.lang.String identity)Get anPunchOutCredentialModelbased on the domain and identity.
-
-
-
Method Detail
-
getPunchOutCredential
PunchOutCredentialModel getPunchOutCredential(java.lang.String domain, java.lang.String identity)
Get anPunchOutCredentialModelbased on the domain and identity.- Parameters:
domain- The domain of this identity (e.g.: DUNS).identity- The value of the identity.- Returns:
- The
PunchOutCredentialModelor null, if it cannot be found.
-
getCustomerForCredential
B2BCustomerModel getCustomerForCredential(Credential credential)
Get the first validB2BCustomerModelthat is mapped for one of the pair domain and identity contained in the credential and validate the shared secret.- Parameters:
credential- The credential that contains domain and identity.- Returns:
- The
B2BCustomerModelor null, if the credential is not mapped for any customer.
-
getCustomerForCredentialNoAuth
B2BCustomerModel getCustomerForCredentialNoAuth(Credential credential)
Get the first validB2BCustomerModelthat is mapped for one of the pair domain and identity contained in the credential without validating the shared secret.- Parameters:
credential- The credential that contains domain and identity.- Returns:
- The
B2BCustomerModelor null, if the credential is not mapped for any customer.
-
-