public interface SecurityFilterInterface
Modifier and Type | Interface and Description |
---|---|
static interface |
SecurityFilterInterface.EncryptionAlgorithm |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteEncrytpionAlgorithm(SecurityFilterInterface.EncryptionAlgorithm alg)
Deletes the specificed encryption algorithm
|
List<SecurityFilterInterface.EncryptionAlgorithm> |
getEncryptionAlgorithms() |
boolean |
insertEncryptionAlgorithm(SecurityFilterInterface.EncryptionAlgorithm alg,
int location)
Inserts the algorithm at location location in the prioritized list of
algorithms.
|
MLMessage |
processMessage(MLMessage msg,
PolicyAgentInterface agent,
boolean incoming) |
boolean |
requireIncomingSigning(boolean required)
Set weather or not to demand incomming messages should be signed to avoid rejection.
|
boolean |
setDefSignatureAlgorithm(String name)
Sets the default signature algorithm to use on outgoing messages
|
int |
setSecurityLevel(int level) |
MLMessage processMessage(MLMessage msg, PolicyAgentInterface agent, boolean incoming)
msg
- The incoming or outgoing messageagent
- The agent sending or recieving the messageincoming
- true if the message is incoming, false if it's outgoingint setSecurityLevel(int level)
level
- 0=none; 1=signed; 2=contentEncrypted 3=fullyEncryptedboolean requireIncomingSigning(boolean required)
required
- boolean setDefSignatureAlgorithm(String name)
name
- boolean insertEncryptionAlgorithm(SecurityFilterInterface.EncryptionAlgorithm alg, int location)
alg
- The algorthmlocation
- the location: 0...boolean deleteEncrytpionAlgorithm(SecurityFilterInterface.EncryptionAlgorithm alg)
alg
- List<SecurityFilterInterface.EncryptionAlgorithm> getEncryptionAlgorithms()