public class AESAuthRequest extends AuthRequest
SecureUtil.ciphersSupported(java.security.PrivateKey) has succeeded.Streamable.ClosuremessageId| Constructor and Description |
|---|
AESAuthRequest()
Zero argument constructor used when unserializing an instance.
|
AESAuthRequest(byte[] key,
Credentials creds,
String version,
String[] bootGroups)
Constructs a auth request with the supplied credentials and client version information.
|
| Modifier and Type | Method and Description |
|---|---|
static AuthRequest |
createAuthRequest(Credentials creds,
String version,
String[] bootGroups,
boolean requireSecureAuth)
Creates an auth request, secured if able, unsecured if not.
|
static AuthRequest |
createAuthRequest(Credentials creds,
String version,
String[] bootGroups,
boolean requireSecureAuth,
PublicKeyCredentials pkcreds,
SecureResponse resp)
Creates an auth request, secured if able, unsecured if not.
|
void |
decrypt(byte[] key)
Decrypts the request after transmission.
|
Credentials |
getCredentials()
Returns a reference to the credentials provided with this request.
|
byte[] |
getSecret()
Returns a shared secret key used for sending encrypted data to the client.
|
void |
readObject(ObjectInputStream in)
Read in our encrypted contents.
|
String |
toString() |
void |
writeObject(ObjectOutputStream out)
A customized AES encrypting write object.
|
getBootGroups, getTimeZone, getVersiongetTransport, noteActualTransport, setTransportpublic AESAuthRequest()
public AESAuthRequest(byte[] key,
Credentials creds,
String version,
String[] bootGroups)
public static AuthRequest createAuthRequest(Credentials creds, String version, String[] bootGroups, boolean requireSecureAuth)
public static AuthRequest createAuthRequest(Credentials creds, String version, String[] bootGroups, boolean requireSecureAuth, PublicKeyCredentials pkcreds, SecureResponse resp)
public Credentials getCredentials()
AuthRequestgetCredentials in class AuthRequestpublic byte[] getSecret()
AuthRequestgetSecret in class AuthRequestpublic String toString()
toString in class AuthRequestpublic void decrypt(byte[] key)
throws IOException,
ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void writeObject(ObjectOutputStream out) throws IOException
IOExceptionpublic void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject in class AuthRequestIOExceptionClassNotFoundExceptionCopyright © 2015. All rights reserved.