public class Authentication extends Verifiable
Base Authentication Object for all incoming Requests. It contains the name of the Account, plus the credentials to unlock the Account. Both the name and credentials are mandatory, whereas the type of credential is optional with a fallback to PassPhrase.
Constructor and Description |
---|
Authentication() |
Modifier and Type | Method and Description |
---|---|
String |
getAccountName() |
byte[] |
getCredential() |
CredentialType |
getCredentialType() |
void |
setAccountName(String accountName) |
void |
setCredential(byte[] credential) |
void |
setCredentialType(CredentialType credentialType) |
Map<String,String> |
validate()
Simple Validation method, which checks if the required values are usable
or not.
|
checkIntegerWithMax, checkNotNull, checkNotNullAndValidId, checkNotNullEmptyOrTooLong, checkNotNullOrEmpty, checkNotNullOrEmpty, checkNotTooLong, checkUrl, checkValidId, isEmpty
public final void setAccountName(String accountName)
public final String getAccountName()
public final void setCredential(byte[] credential)
public final byte[] getCredential()
public final void setCredentialType(CredentialType credentialType)
public final CredentialType getCredentialType()
public Map<String,String> validate()
validate
in class Verifiable
Copyright © 2019 JavaDog.io. All rights reserved.