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

Public Member Functions

void addCredentials (HttpUriRequest request, String keyName) throws KeyczarException
 
boolean authenticate (String message, String signture, String keyName) throws KeyczarException
 

Detailed Description

Author
szewczenko

Member Function Documentation

◆ addCredentials()

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

Add credentials to outgoing request.

Parameters
requestHttp URI request to add credentials to
keyNamePrivate key used to sign a message
Exceptions
KeyczarException

Implemented in eu.baltrad.dex.net.auth.EasyAuthenticator, and eu.baltrad.dex.net.auth.KeyczarAuthenticator.

◆ authenticate()

boolean eu.baltrad.dex.net.auth.Authenticator.authenticate ( String message,
String signture,
String keyName ) throws KeyczarException

Authenticates request at servlet side.

Parameters
messageMessage to authenticate
signatureSignature to authenticate with
keyNamePublic key used to verify a message
Returns
True upon successful authentication, false otherwise
Exceptions
KeyczarException

Implemented in eu.baltrad.dex.net.auth.EasyAuthenticator, and eu.baltrad.dex.net.auth.KeyczarAuthenticator.


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