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 inAuthDatafield.- 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 AuthDatagetAuth()Map<String,Object>getData()voidsetAuth(Map<String,Object> auth)Set authentication data.voidsetData(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 theAuthDatamodel.- Parameters:
 auth- Raw authentication data- Throws:
 InvalidResponseException- on mapping errors
 
- 
setData
public void setData(Map<String,Object> data)
Description copied from class:VaultDataResponseSet data. To be implemented in the specific subclasses, as data can be of arbitrary structure.- Specified by:
 setDatain classVaultDataResponse- Parameters:
 data- Raw response data
 
- 
getAuth
public AuthData getAuth()
- Returns:
 - Authentication data
 
 
 - 
 
 -