BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.net.auth.KeyczarAuthenticator Class Reference
Inheritance diagram for eu.baltrad.dex.net.auth.KeyczarAuthenticator:
eu.baltrad.dex.net.auth.Authenticator

Public Member Functions

 KeyczarAuthenticator (ISecurityManager securityManager)
 
void addCredentials (HttpUriRequest request, String keyName) throws KeyczarException
 
boolean authenticate (String message, String signature, String keyName) throws KeyczarException
 
void setSecurityManager (ISecurityManager securityManager)
 

Detailed Description

Implements Keyczar authenticator. Uses the security manager in beast.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.1.0
Since
1.1.0

Constructor & Destructor Documentation

◆ KeyczarAuthenticator()

eu.baltrad.dex.net.auth.KeyczarAuthenticator.KeyczarAuthenticator ( ISecurityManager securityManager)
inline

DEX logger Constructor.

Parameters
keystoreRootKeystore root directory

Member Function Documentation

◆ addCredentials()

void eu.baltrad.dex.net.auth.KeyczarAuthenticator.addCredentials ( HttpUriRequest request,
String keyName ) throws KeyczarException
inline

Adds signature as a header field.

Parameters
requestHttp request
keyNamePrivate key used to sign a message

Implements eu.baltrad.dex.net.auth.Authenticator.

◆ authenticate()

boolean eu.baltrad.dex.net.auth.KeyczarAuthenticator.authenticate ( String message,
String signature,
String keyName ) throws KeyczarException
inline

Authenticates request at servlet side.

Parameters
messageMessage to authenticate
signatureSignature to authenticate with
keyNamePublic key used to verify a message
Returns
True upon success, false otherwise

Implements eu.baltrad.dex.net.auth.Authenticator.

◆ setSecurityManager()

void eu.baltrad.dex.net.auth.KeyczarAuthenticator.setSecurityManager ( ISecurityManager securityManager)
inline
Parameters
securityManagerthe security manager

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