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

Public Member Functions

 SecurityManager ()
 Constructor.
 
void setAuthorizationManager (IAuthorizationManager authorizationManager)
 
void setCryptoFactory (CryptoFactory factory)
 
void setKeyczarKeyPath (String path)
 
String getKeyczarKeyPath ()
 
String expandPublicKey (Authorization authorization)
 
String expandPrivateKey (Authorization authorization)
 
Signer getSigner (String nodeName)
 
Verifier getVerifier (String nodeName)
 
boolean validate (String nodeName, String signature, String message)
 
boolean validate (String nodeName, String messageDate, String signature, Command command)
 Validates a command so that it is valid to run.
 
String createSignature (String message)
 
Authorization getLocal ()
 
void setLocal (Authorization auth)
 
String getLocalNodeName ()
 
void setLocalNodeName (String localNodeName)
 
void setAuthorizationRequestManager (IAuthorizationRequestManager authorizationRequestManager)
 
boolean isInjector (String nodeName)
 
String createSignatureMessage (HttpUriRequest request)
 Function that creates the message to be signed from an uri request.
 

Constructor & Destructor Documentation

◆ SecurityManager()

eu.baltrad.beast.security.SecurityManager.SecurityManager ( )
inline

Constructor.

Member Function Documentation

◆ createSignature()

String eu.baltrad.beast.security.SecurityManager.createSignature ( String message)
inline

◆ createSignatureMessage()

String eu.baltrad.beast.security.SecurityManager.createSignatureMessage ( HttpUriRequest request)
inline

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

Implements eu.baltrad.beast.security.ISecurityManager.

◆ expandPrivateKey()

String eu.baltrad.beast.security.SecurityManager.expandPrivateKey ( Authorization authorization)
inline

◆ expandPublicKey()

String eu.baltrad.beast.security.SecurityManager.expandPublicKey ( Authorization authorization)
inline

◆ getKeyczarKeyPath()

String eu.baltrad.beast.security.SecurityManager.getKeyczarKeyPath ( )
inline
Returns
path the keyczar key path

◆ getLocal()

Authorization eu.baltrad.beast.security.SecurityManager.getLocal ( )
inline

◆ getLocalNodeName()

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

Implements eu.baltrad.beast.security.ISecurityManager.

◆ getSigner()

Signer eu.baltrad.beast.security.SecurityManager.getSigner ( String nodeName)
inline

◆ getVerifier()

Verifier eu.baltrad.beast.security.SecurityManager.getVerifier ( String nodeName)
inline

◆ isInjector()

boolean eu.baltrad.beast.security.SecurityManager.isInjector ( String nodeName)
inline

◆ setAuthorizationManager()

void eu.baltrad.beast.security.SecurityManager.setAuthorizationManager ( IAuthorizationManager authorizationManager)
inline
Parameters
authorizationManagerthe authorization manager

◆ setAuthorizationRequestManager()

void eu.baltrad.beast.security.SecurityManager.setAuthorizationRequestManager ( IAuthorizationRequestManager authorizationRequestManager)
inline
Parameters
authorizationRequestManager

◆ setCryptoFactory()

void eu.baltrad.beast.security.SecurityManager.setCryptoFactory ( CryptoFactory factory)
inline
Parameters
factorythe crypto factory

◆ setKeyczarKeyPath()

void eu.baltrad.beast.security.SecurityManager.setKeyczarKeyPath ( String path)
inline
Parameters
paththe keyczar key path

◆ setLocal()

void eu.baltrad.beast.security.SecurityManager.setLocal ( Authorization auth)
inline
See also
IAuthorizationManager.setLocal(Authorization)

Implements eu.baltrad.beast.security.ISecurityManager.

◆ setLocalNodeName()

void eu.baltrad.beast.security.SecurityManager.setLocalNodeName ( String localNodeName)
inline
Parameters
localNodeNamethe local node name

◆ validate() [1/2]

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

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

Implements eu.baltrad.beast.security.ISecurityManager.

◆ validate() [2/2]

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

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