public interface ISecurityService
Modifier and Type | Method and Description |
---|---|
IFuture<String[]> |
getKeystoreInfo()
Set the keystore info.
|
IFuture<String> |
getLocalPassword()
Get the local password.
|
IFuture<String> |
getNetworkPassword(String network)
Get the password for a network.
|
IFuture<Map<String,String>> |
getNetworkPasswords()
Get all stored network passwords.
|
IFuture<String> |
getPlatformPassword(IComponentIdentifier target)
Get the password for a target component.
|
IFuture<Map<String,String>> |
getPlatformPasswords()
Get all stored platform passwords.
|
IFuture<Boolean> |
isTrustedLanMode()
Get the trusted lan mode.
|
IFuture<Boolean> |
isUsePassword()
Check if password protection is enabled.
|
IFuture<Void> |
preprocessRequest(IAuthorizable request,
IComponentIdentifier target)
Preprocess a request.
|
IFuture<Void> |
setKeystoreInfo(String path,
String storepass,
String keypass)
Set the keystore info.
|
IFuture<Void> |
setLocalPassword(String password)
Set the local password.
|
IFuture<Void> |
setNetworkPassword(String network,
String password)
Set the password for a network.
|
IFuture<Void> |
setPlatformPassword(IComponentIdentifier target,
String password)
Set the password for a target component.
|
IFuture<Void> |
setTrustedLanMode(boolean allowed)
Set the trusted lan mode.
|
IFuture<Void> |
setUsePassword(boolean enable)
Enable / disable password protection.
|
IFuture<Void> |
validateRequest(IAuthorizable request)
Validate a request.
|
IFuture<Boolean> isUsePassword()
IFuture<Void> setUsePassword(boolean enable)
enable
- If true, password protection is enabled, otherwise disabled.Exception,
- when enable is true and no password is set.IFuture<String> getLocalPassword()
IFuture<Void> setLocalPassword(String password)
password
- The password of the local platform.Exception,
- when a null password is provided and use password is true.IFuture<String> getPlatformPassword(IComponentIdentifier target)
target
- The id of the target component.IFuture<Void> setPlatformPassword(IComponentIdentifier target, String password)
target
- The id of the target component.password
- The password or null if no password should be used.IFuture<String> getNetworkPassword(String network)
target
- The id of the target component.IFuture<Void> setNetworkPassword(String network, String password)
network
- The id of the network.password
- The password or null if no password should be used.IFuture<Map<String,String>> getPlatformPasswords()
IFuture<Map<String,String>> getNetworkPasswords()
IFuture<Void> setTrustedLanMode(boolean allowed)
allowed
- The flag if it is allowed.IFuture<Boolean> isTrustedLanMode()
IFuture<String[]> getKeystoreInfo()
IFuture<Void> setKeystoreInfo(String path, String storepass, String keypass)
path
- The path to the keystore.storepass
- The password of the store.keypass
- The password of the key.IFuture<Void> validateRequest(IAuthorizable request)
request
- The request to be validated.SecurityException,
- when request is not valid.IFuture<Void> preprocessRequest(IAuthorizable request, IComponentIdentifier target)
request
- The request to be preprocessed.target
- The target to which the request should be sent later.dur
- The request validity duration.Copyright © 2012. All Rights Reserved.