KeyStoreComponent

abstract class KeyStoreComponent extends Component

KeyStoreComponent is a module component which embeds a key store.

Author:Hugo Y. K. Lam

Fields

alias

String alias

The alias name.

keyPass

char[] keyPass

The key password

keyStore

KeyStore keyStore

The embeded key store.

location

String location

The key store location.

provider

Object provider

The key store provider.

storePass

char[] storePass

The key store password

storeType

String storeType

The key store type.

Constructors

KeyStoreComponent

public KeyStoreComponent()

Creates a new instance of KeyStoreComponent.

Methods

init

protected void init()

Initializes this key store component.

Component parameters:

  • keystore-location: the key store location
  • keystore-password: the key store password
  • key-alias: the alias name
  • key-password: the key password
  • keystore-type: the key store type.
  • keystore-provider: the key store provider
Throws:

See also: .init(String,String,String,String,String,Object), hk.hku.cecid.piazza.commons.module.Component.init()

init

protected void init(KeyStore keyStore, String alias, String keyPass)

Initializes this key store component.

Parameters:
  • keyStore
  • alias – the alias name.
  • keyPass – the key password.
Throws:

init

protected void init(String location, String storePass, String alias, String keyPass, String storeType, Object provider)

Initializes this key store component.

Parameters:
  • location – the key store location.
  • storePass – the key store password.
  • alias – the alias name.
  • keyPass – the key password.
  • storeType – the key store type.
  • provider – the key store provider.
Throws: