BEAST
eu.baltrad.beast.security.ISecurityManager Interface Reference
Inheritance diagram for eu.baltrad.beast.security.ISecurityManager:
eu.baltrad.beast.security.SecurityManager

Public Member Functions

String expandPublicKey (Authorization authorization)
 Adds the public key for usage by the security manager.
 
String expandPrivateKey (Authorization authorization)
 Adds the private key for usage by the security manager.
 
Signer getSigner (String nodeName)
 Returns the signer.
 
Verifier getVerifier (String nodeName)
 Returns the verifier.
 
boolean validate (String nodeName, String signature, String message)
 Validates the message according to the public key verifier.
 
boolean validate (String nodeName, String messageDate, String signature, Command command)
 Validates a command so that it is valid to run.
 
Authorization getLocal ()
 
void setLocal (Authorization auth)
 
String createSignature (String message)
 
boolean isInjector (String nodeName)
 
String getLocalNodeName ()
 
String createSignatureMessage (HttpUriRequest request)
 Function that creates the message to be signed from an uri request.
 

Member Function Documentation

◆ createSignature()

String eu.baltrad.beast.security.ISecurityManager.createSignature ( String message)
Parameters
messagethe message to create a signature from
Returns
the signature

Implemented in eu.baltrad.beast.security.SecurityManager.

◆ createSignatureMessage()

String eu.baltrad.beast.security.ISecurityManager.createSignatureMessage ( HttpUriRequest request)

Function that creates the message to be signed from an uri request.

This is ill-placed here and should be moved somewhere more appropriate.

Parameters
requestthe request the request
Returns
the signature message

Implemented in eu.baltrad.beast.security.SecurityManager.

◆ expandPrivateKey()

String eu.baltrad.beast.security.ISecurityManager.expandPrivateKey ( Authorization authorization)

Adds the private key for usage by the security manager.

Parameters
authorizationthe authorization
Returns
the folder name where the key has been placed

Implemented in eu.baltrad.beast.security.SecurityManager.

◆ expandPublicKey()

String eu.baltrad.beast.security.ISecurityManager.expandPublicKey ( Authorization authorization)

Adds the public key for usage by the security manager.

Parameters
authorizationthe authorization
Returns
the folder name where the key has been placed

Implemented in eu.baltrad.beast.security.SecurityManager.

◆ getLocal()

Authorization eu.baltrad.beast.security.ISecurityManager.getLocal ( )
Returns
the local node authorization

Implemented in eu.baltrad.beast.security.SecurityManager.

◆ getLocalNodeName()

String eu.baltrad.beast.security.ISecurityManager.getLocalNodeName ( )
Returns
the local node name

Implemented in eu.baltrad.beast.security.SecurityManager.

◆ getSigner()

Signer eu.baltrad.beast.security.ISecurityManager.getSigner ( String nodeName)

Returns the signer.

Parameters
nodeNamename of the signer, usually local node name
Returns
the node name

Implemented in eu.baltrad.beast.security.SecurityManager.

◆ getVerifier()

Verifier eu.baltrad.beast.security.ISecurityManager.getVerifier ( String nodeName)

Returns the verifier.

Parameters
nodeNamethe node name
Returns
the verifier

Implemented in eu.baltrad.beast.security.SecurityManager.

◆ isInjector()

boolean eu.baltrad.beast.security.ISecurityManager.isInjector ( String nodeName)
Parameters
nodeNamethe node name
Returns
if specified node is classified as an injector and also if it has been authorized.

Implemented in eu.baltrad.beast.security.SecurityManager.

◆ setLocal()

void eu.baltrad.beast.security.ISecurityManager.setLocal ( Authorization auth)
Parameters
auththe local node authorization

Implemented in eu.baltrad.beast.security.SecurityManager.

◆ validate() [1/2]

boolean eu.baltrad.beast.security.ISecurityManager.validate ( String nodeName,
String messageDate,
String signature,
Command command )

Validates a command so that it is valid to run.

Parameters
nodeNameThe node name
messageDateThe date when sending message
signatureThe signature in the message
commandThe command to be verified
Returns
if command should be accepted or not

Implemented in eu.baltrad.beast.security.SecurityManager.

◆ validate() [2/2]

boolean eu.baltrad.beast.security.ISecurityManager.validate ( String nodeName,
String signature,
String message )

Validates the message according to the public key verifier.

Parameters
nodeNamethe node name
signaturethe signature
messagethe message validated
Returns
if the message is signed properly

Implemented in eu.baltrad.beast.security.SecurityManager.


The documentation for this interface was generated from the following file: