public interface CipherService
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
encrypt(java.lang.String userId,
PunchOutSession punchoutSession)
Create a hash for a given user to be used in punchout login.
|
java.lang.String |
retrieveUserId(java.lang.String encryptedText,
PunchOutSession punchoutSession)
Retrieves the userId for a given encrypted text.
|
java.lang.String encrypt(java.lang.String userId,
PunchOutSession punchoutSession)
throws PunchOutCipherException,
java.lang.IllegalArgumentException
userId - The human readable id of the user that will get an associated hash.punchoutSession - The session of the current punchout user.PunchOutCipherException - If Cipher has issues encrypting the text.java.lang.IllegalArgumentException - If some of the required arguments is missing or empty.java.lang.String retrieveUserId(java.lang.String encryptedText,
PunchOutSession punchoutSession)
throws PunchOutCipherException,
java.lang.IllegalArgumentException
encryptedText - The text to be decrypted.punchoutSession - The session of the current punchout user.PunchOutCipherException - If Cipher has issues decrypting the text.java.lang.IllegalArgumentException - If some of the required arguments is missing or empty.Copyright © 2018 SAP SE. All Rights Reserved.