public class AuthenticationHelper
extends java.lang.Object
Constructor and Description |
---|
AuthenticationHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
base64Encode(byte[] bytes)
Encodes bytes to a BASE64 String.
|
static java.lang.String |
generateApplicationKey(byte[] nonceValue,
java.lang.String key)
Deprecated.
|
static java.lang.String |
generateSharedSecret(java.lang.String password)
Deprecated.
|
static java.lang.String |
getBase64Digest(byte[] nonce,
byte[] created,
byte[] password)
SHA-1(nonce + created + password)
|
static java.lang.String |
getBase64DigestKey(byte[] nonce,
byte[] apiPass)
SHA-1(nonce + API_PASS)
|
@Deprecated public static java.lang.String generateSharedSecret(java.lang.String password)
SitecatalystWebservice.getLoginKey(String, String, String)
insteadpassword
- password@Deprecated public static java.lang.String generateApplicationKey(byte[] nonceValue, java.lang.String key) throws java.lang.Exception
nonceValue
- nonceValuekey
- keyjava.lang.Exception
- Exception
public static java.lang.String getBase64Digest(byte[] nonce, byte[] created, byte[] password)
nonce
- noncecreated
- createdpassword
- passwordpublic static java.lang.String getBase64DigestKey(byte[] nonce, byte[] apiPass)
nonce
- nonceapiPass
- apiPasspublic static java.lang.String base64Encode(byte[] bytes)
bytes
- bytes"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"