Interface PunchOutCredentialService
- All Known Implementing Classes:
DefaultPunchOutCredentialService
public interface PunchOutCredentialService
Service to manage entity
PunchOutCredentialModel.-
Method Summary
Modifier and TypeMethodDescriptiongetCustomerForCredential(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.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.Get the expired credentials that shared secret has not changed for configured days.getPunchOutCredential(String domain, String identity) Get anPunchOutCredentialModelbased on the domain and identity.
-
Method Details
-
getPunchOutCredential
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
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
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.
-
getExpiredPunchOutCredentials
List<PunchOutCredentialModel> getExpiredPunchOutCredentials()Get the expired credentials that shared secret has not changed for configured days.- Returns:
- A bundle of
PunchOutCredentialModelor empty list, if there is not any expired credentials.
-