Module de.stklcode.jvault.connector
Class AuthResponse
java.lang.Object
de.stklcode.jvault.connector.model.response.VaultDataResponse
de.stklcode.jvault.connector.model.response.AuthResponse
- All Implemented Interfaces:
VaultResponse
Vault response for authentication providing auth info in
AuthData
field.- Since:
- 0.1
- Author:
- Stefan Kalscheuer
-
Constructor Summary
-
Method Summary
Methods inherited from class de.stklcode.jvault.connector.model.response.VaultDataResponse
getLeaseDuration, getLeaseId, getWarnings, isRenewable
-
Constructor Details
-
AuthResponse
public AuthResponse()
-
-
Method Details
-
setAuth
Set authentication data. The input will be mapped to theAuthData
model.- Parameters:
auth
- Raw authentication data- Throws:
InvalidResponseException
- on mapping errors
-
setData
Description copied from class:VaultDataResponse
Set data. To be implemented in the specific subclasses, as data can be of arbitrary structure.- Specified by:
setData
in classVaultDataResponse
- Parameters:
data
- Raw response data
-
getData
- Returns:
- Raw data
-
getAuth
- Returns:
- Authentication data
-