public class QACredentials
extends java.lang.Object
getCredentials()
.Constructor and Description |
---|
QACredentials() |
QACredentials(org.opendof.core.oal.DOFCredentials creds) |
Modifier and Type | Method and Description |
---|---|
void |
createWithKey(java.lang.String authID,
java.lang.String domainID,
byte[] key)
Create the DOFCredentials using a key in the form of a byte array.
|
void |
createWithPassword(java.lang.String authID,
java.lang.String domainID,
java.lang.String password)
Create the DOFCredentials using a password in the form of a String.
|
org.opendof.core.oal.DOFCredentials |
getCredentials()
Returns the DOFCredentials represented by this object.
|
static byte[] |
hexStringToByteArray(java.lang.String s)
Converts a 64 character string into a byte array.
|
public QACredentials(org.opendof.core.oal.DOFCredentials creds)
public QACredentials()
public void createWithKey(java.lang.String authID, java.lang.String domainID, byte[] key) throws java.lang.Exception
authID
- The identity to use when creating the credentials.domainID
- The domain to use when creating the credentials.key
- The key.java.lang.Exception
- if there is a problem creating the credentials.public void createWithPassword(java.lang.String authID, java.lang.String domainID, java.lang.String password) throws java.lang.Exception
authID
- The identity to use when creating the credentials.domainID
- The domain to use when creating the credentials.password
- The password.java.lang.Exception
- if there is a problem creating the credentials.public org.opendof.core.oal.DOFCredentials getCredentials()
public static byte[] hexStringToByteArray(java.lang.String s) throws java.lang.Exception
s
- The string to convert into a byte array.java.lang.Exception