Class XServiceAuthenticationResponse
java.lang.Object
io.goobi.viewer.model.security.authentication.model.XServiceAuthenticationResponse
Authentication response object for X-Service.
-
Constructor Summary
ConstructorDescriptionXServiceAuthenticationResponse
(String xml, String encoding) Parses and evaluates the given XML response from X-Service. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fielderrorMsg
.getId()
Getter for the fieldid
.Getter for the fieldrequest
.boolean
isExpired.boolean
isValid()
isValid.void
setErrorMsg
(String errorMsg) Setter for the fielderrorMsg
.void
Setter for the fieldrequest
.
-
Constructor Details
-
XServiceAuthenticationResponse
public XServiceAuthenticationResponse(String xml, String encoding) throws org.jdom2.JDOMException, IOException Parses and evaluates the given XML response from X-Service.- Parameters:
xml
- aString
object.encoding
- aString
object.- Throws:
org.jdom2.JDOMException
- if any.IOException
- if any.
-
-
Method Details
-
isValid
public boolean isValid()isValid.
- Returns:
- true if all relevant data indicates the account is valid; false otherwise
-
getErrorMsg
Getter for the field
errorMsg
.- Returns:
- the errorMsg
-
setErrorMsg
Setter for the field
errorMsg
.- Parameters:
errorMsg
- the errorMsg to set
-
getId
Getter for the field
id
.- Returns:
- the id
-
isExpired
public boolean isExpired()isExpired.
- Returns:
- the expired
-
getRequest
Getter for the field
request
.- Returns:
- the request
-
setRequest
Setter for the field
request
.- Parameters:
request
- the request to set
-