BEAST
eu.baltrad.beast.security.crypto.KeyczarCryptoFactory Class Reference

Construct Keyczar signers and verifiers. More...

Inheritance diagram for eu.baltrad.beast.security.crypto.KeyczarCryptoFactory:
eu.baltrad.beast.security.crypto.CryptoFactory

Public Member Functions

 KeyczarCryptoFactory (File keyStoreRoot)
 Constructor.
 
Signer createSigner (String name) throws KeyczarException
 Create a signer using key from $keyStoreRoot/$name.priv.
 
Verifier createVerifier (String name) throws KeyczarException
 Create a signer using key from $keyStoreRoot/$name.pub.
 

Protected Member Functions

File getKeyLocation (String name)
 

Detailed Description

Construct Keyczar signers and verifiers.

It assumes a certain structure from your keystore:

  • private keys must be stored in $keyStoreRoot/$name.priv
  • public keys must be stored in $keyStoreRoot/$name.pub

Constructor & Destructor Documentation

◆ KeyczarCryptoFactory()

eu.baltrad.beast.security.crypto.KeyczarCryptoFactory.KeyczarCryptoFactory ( File keyStoreRoot)
inline

Constructor.

Parameters
keyStoreRoot- root directory of the keystore

Member Function Documentation

◆ createSigner()

Signer eu.baltrad.beast.security.crypto.KeyczarCryptoFactory.createSigner ( String name) throws KeyczarException
inline

Create a signer using key from $keyStoreRoot/$name.priv.

Exceptions
KeyczarException

Implements eu.baltrad.beast.security.crypto.CryptoFactory.

◆ createVerifier()

Verifier eu.baltrad.beast.security.crypto.KeyczarCryptoFactory.createVerifier ( String name) throws KeyczarException
inline

Create a signer using key from $keyStoreRoot/$name.pub.

Exceptions
KeyczarException

Implements eu.baltrad.beast.security.crypto.CryptoFactory.

◆ getKeyLocation()

File eu.baltrad.beast.security.crypto.KeyczarCryptoFactory.getKeyLocation ( String name)
inlineprotected
Parameters
namethe name of the key without path to keystore
Returns
the file

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