KeyStore.CallbackHandlerProtection

  • KeyStore.CallbackHandlerProtection implements KeyStore.ProtectionParameter and encapsulates a CallbackHandler for protecting keystore entries.

  • It provides a constructor to create an instance using a CallbackHandler.

  • The getCallbackHandler() method allows retrieval of the associated CallbackHandler.

  • This class inherits methods from java.lang.Object for basic object operations.

  • If the handler parameter passed to the constructor is null, it throws a NullPointerException.

public static class KeyStore.CallbackHandlerProtection extends Object
implements KeyStore.ProtectionParameter

A ProtectionParameter encapsulating a CallbackHandler.

Public Constructor Summary

CallbackHandlerProtection(CallbackHandler handler)
Constructs a new CallbackHandlerProtection from a CallbackHandler.

Public Method Summary

CallbackHandler
getCallbackHandler()
Returns the CallbackHandler.

Inherited Method Summary

Public Constructors

public CallbackHandlerProtection (CallbackHandler handler)

Constructs a new CallbackHandlerProtection from a CallbackHandler.

Parameters
handler the CallbackHandler
Throws
NullPointerException if handler is null

Public Methods

public CallbackHandler getCallbackHandler ()

Returns the CallbackHandler.

Returns
  • the CallbackHandler.