public static class SecurityConfHandler.SecurityConfig extends Object
Map<String,Object>
and optionally its version.
The version property is optional and defaults to -1 if not initialized.
The data object defaults to EMPTY_MAP if not setConstructor and Description |
---|
SecurityConfig() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getData() |
int |
getVersion() |
SecurityConfHandler.SecurityConfig |
setData(InputStream securityJsonInputStream)
Set data from input stream
|
SecurityConfHandler.SecurityConfig |
setData(Map<String,Object> data)
Sets the data as a Map
|
SecurityConfHandler.SecurityConfig |
setData(Object data)
Sets the data as an Object, but the object needs to be of type Map
|
SecurityConfHandler.SecurityConfig |
setVersion(int version)
Sets version
|
String |
toString() |
public SecurityConfHandler.SecurityConfig setData(Map<String,Object> data)
data
- a Mappublic SecurityConfHandler.SecurityConfig setData(Object data)
data
- an Object of type Map<String,Object>public SecurityConfHandler.SecurityConfig setVersion(int version)
version
- integer for version. Depends on underlying storagepublic int getVersion()
public SecurityConfHandler.SecurityConfig setData(InputStream securityJsonInputStream)
securityJsonInputStream
- an input stream for security.jsonCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.