public class AuthenticationRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
private RequestControl[] |
controls
Request controls.
|
private Credential |
credential
User credential.
|
private String[] |
returnAttributes
User attributes to return.
|
private User |
user
User.
|
| Constructor and Description |
|---|
AuthenticationRequest()
Default constructor.
|
AuthenticationRequest(String id,
Credential c)
Creates a new authentication request.
|
AuthenticationRequest(String id,
Credential c,
String... attrs)
Creates a new authentication request.
|
AuthenticationRequest(User u,
Credential c)
Creates a new authentication request.
|
AuthenticationRequest(User u,
Credential c,
String... attrs)
Creates a new authentication request.
|
| Modifier and Type | Method and Description |
|---|---|
RequestControl[] |
getControls()
Returns the controls.
|
Credential |
getCredential()
Returns the credential.
|
String[] |
getReturnAttributes()
Returns the return attributes.
|
User |
getUser()
Returns the user.
|
static AuthenticationRequest |
newAuthenticationRequest(AuthenticationRequest request)
Returns an authentication request initialized with the supplied request.
|
void |
setControls(RequestControl... c)
Sets the controls.
|
void |
setCredential(Credential c)
Sets the credential.
|
void |
setReturnAttributes(String... attrs)
Sets the return attributes.
|
void |
setUser(User u)
Sets the user.
|
String |
toString() |
private User user
private Credential credential
private String[] returnAttributes
private RequestControl[] controls
public AuthenticationRequest()
public AuthenticationRequest(String id, Credential c)
id - that identifies the userc - credential to authenticate the userpublic AuthenticationRequest(String id, Credential c, String... attrs)
id - that identifies the userc - credential to authenticate the userattrs - attributes to returnpublic AuthenticationRequest(User u, Credential c)
u - that identifies the userc - credential to authenticate the userpublic AuthenticationRequest(User u, Credential c, String... attrs)
u - that identifies the userc - credential to authenticate the userattrs - attributes to returnpublic User getUser()
public void setUser(User u)
u - userpublic Credential getCredential()
public void setCredential(Credential c)
c - user credentialpublic String[] getReturnAttributes()
public void setReturnAttributes(String... attrs)
attrs - return attributespublic RequestControl[] getControls()
public void setControls(RequestControl... c)
c - controls to setpublic static AuthenticationRequest newAuthenticationRequest(AuthenticationRequest request)
request - authentication request to read properties fromCopyright © 2003-2019 Virginia Tech. All Rights Reserved.