Class AuthResponse
- java.lang.Object
-
- de.stklcode.jvault.connector.model.response.VaultDataResponse
-
- de.stklcode.jvault.connector.model.response.AuthResponse
-
- All Implemented Interfaces:
VaultResponse
public final class AuthResponse extends VaultDataResponse
Vault response for authentication providing auth info inAuthData
field.- Since:
- 0.1
- Author:
- Stefan Kalscheuer
-
-
Constructor Summary
Constructors Constructor Description AuthResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthData
getAuth()
Map<String,Object>
getData()
void
setAuth(Map<String,Object> auth)
Set authentication data.void
setData(Map<String,Object> data)
Set data.-
Methods inherited from class de.stklcode.jvault.connector.model.response.VaultDataResponse
getLeaseDuration, getLeaseId, getWarnings, isRenewable
-
-
-
-
Method Detail
-
setAuth
public void setAuth(Map<String,Object> auth) throws InvalidResponseException
Set authentication data. The input will be mapped to theAuthData
model.- Parameters:
auth
- Raw authentication data- Throws:
InvalidResponseException
- on mapping errors
-
setData
public void setData(Map<String,Object> data)
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
-
getAuth
public AuthData getAuth()
- Returns:
- Authentication data
-
-