Class AuthenticationRequest
- java.lang.Object
-
- com.portwise.mvpnms.controller.authentication.AuthenticationRequest
-
public class AuthenticationRequest extends java.lang.Object
This class holds information used for the authentication request.
-
-
Constructor Summary
Constructors Constructor Description AuthenticationRequest(int authenticationMethodId)
Constructs a newAuthenticationRequest
instance with the specified authentication method ID.AuthenticationRequest(int authenticationMethodId, AuthenticationParameters parameters)
Constructs a newAuthenticationRequest
instance with the specified authentication method ID and parameters.AuthenticationRequest(int authenticationMethodId, AuthenticationParameters parameters, AuthenticationAttributes attributes)
Constructs a newAuthenticationRequest
instance with the specified authentication method ID, parameters and attributes.AuthenticationRequest(int authenticationMethodId, AuthenticationParameters parameters, AuthenticationAttributes attributes, java.lang.String sessionId)
Constructs a newAuthenticationRequest
instance with the specified authentication method ID, parameters, attributes, and session ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationAttributes
getAttributes()
Returns the authentication attributes.int
getAuthenticationMechanism()
Returns the authentication method ID.AuthenticationParameters
getParameters()
Returns the authentication parameters.java.lang.String
getSessionID()
Returns the session ID.boolean
isXpiRequest()
Flag is true if this is a auth-req sent through XPIvoid
setIsXpiRequest(boolean isXpiRequest)
Set to true if request comes from XPI in order to brand audit logs with [ XPI ]void
setSessionID(java.lang.String sessionID)
Sets the session ID.java.lang.String
toString()
-
-
-
Constructor Detail
-
AuthenticationRequest
public AuthenticationRequest(int authenticationMethodId)
Constructs a newAuthenticationRequest
instance with the specified authentication method ID.- Parameters:
authenticationMethodId
- The authentication method ID.
-
AuthenticationRequest
public AuthenticationRequest(int authenticationMethodId, AuthenticationParameters parameters)
Constructs a newAuthenticationRequest
instance with the specified authentication method ID and parameters.- Parameters:
authenticationMethodId
- The authentication method ID.parameters
- The authentication parameters.
-
AuthenticationRequest
public AuthenticationRequest(int authenticationMethodId, AuthenticationParameters parameters, AuthenticationAttributes attributes)
Constructs a newAuthenticationRequest
instance with the specified authentication method ID, parameters and attributes.- Parameters:
authenticationMethodId
- The authentication method ID.parameters
- The authentication parameters.attributes
- The authentication attributes.
-
AuthenticationRequest
public AuthenticationRequest(int authenticationMethodId, AuthenticationParameters parameters, AuthenticationAttributes attributes, java.lang.String sessionId)
Constructs a newAuthenticationRequest
instance with the specified authentication method ID, parameters, attributes, and session ID.- Parameters:
authenticationMethodId
- The authentication method ID.parameters
- The authentication parameters.attributes
- The authentication attributes.sessionId
- The session ID.
-
-
Method Detail
-
getAuthenticationMechanism
public int getAuthenticationMechanism()
Returns the authentication method ID.- Returns:
- The authentication method ID.
-
getParameters
public AuthenticationParameters getParameters()
Returns the authentication parameters.- Returns:
- The authentication parameters.
-
getAttributes
public AuthenticationAttributes getAttributes()
Returns the authentication attributes.- Returns:
- The authentication attributes.
-
getSessionID
public java.lang.String getSessionID()
Returns the session ID.- Returns:
- The session ID.
-
setSessionID
public void setSessionID(java.lang.String sessionID)
Sets the session ID.- Parameters:
sessionID
- The session ID.
-
isXpiRequest
public boolean isXpiRequest()
Flag is true if this is a auth-req sent through XPI- Returns:
-
setIsXpiRequest
public void setIsXpiRequest(boolean isXpiRequest)
Set to true if request comes from XPI in order to brand audit logs with [ XPI ]- Parameters:
isXpiRequest
-
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-