KeyStore.CallbackHandlerProtection
Stay organized with collections
Save and categorize content based on your preferences.
A ProtectionParameter encapsulating a CallbackHandler.
Public Constructor Summary
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals( Object obj)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long timeout, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long timeout)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
Public Constructors
public
CallbackHandlerProtection
(CallbackHandler handler)
Constructs a new CallbackHandlerProtection from a
CallbackHandler.
Parameters
handler |
the CallbackHandler |
Public Methods
Returns the CallbackHandler.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eKeyStore.CallbackHandlerProtection\u003c/code\u003e implements \u003ccode\u003eKeyStore.ProtectionParameter\u003c/code\u003e and encapsulates a \u003ccode\u003eCallbackHandler\u003c/code\u003e for protecting keystore entries.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a constructor to create an instance using a \u003ccode\u003eCallbackHandler\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetCallbackHandler()\u003c/code\u003e method allows retrieval of the associated \u003ccode\u003eCallbackHandler\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits methods from \u003ccode\u003ejava.lang.Object\u003c/code\u003e for basic object operations.\u003c/p\u003e\n"],["\u003cp\u003eIf the \u003ccode\u003ehandler\u003c/code\u003e parameter passed to the constructor is null, it throws a \u003ccode\u003eNullPointerException\u003c/code\u003e.\u003c/p\u003e\n"]]],["`CallbackHandlerProtection` encapsulates a `CallbackHandler` for keystore protection. It's constructed using a `CallbackHandler`, which cannot be null. The primary function is `getCallbackHandler()`, which retrieves the associated `CallbackHandler`. Inherited methods from `Object` enable functionalities like cloning, comparison, hash code generation, string representation, thread notification, and waiting. The class ensures secure handling of callback mechanisms for keystore operations.\n"],null,["# KeyStore.CallbackHandlerProtection\n\npublic static class **KeyStore.CallbackHandlerProtection** extends [Object](../../../reference/java/lang/Object.html) \nimplements [KeyStore.ProtectionParameter](../../../reference/java/security/KeyStore.ProtectionParameter.html) \nA ProtectionParameter encapsulating a CallbackHandler. \n\n### Public Constructor Summary\n\n|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [CallbackHandlerProtection](../../../reference/java/security/KeyStore.CallbackHandlerProtection.html#CallbackHandlerProtection(javax.security.auth.callback.CallbackHandler))([CallbackHandler](../../../reference/javax/security/auth/callback/CallbackHandler.html) handler) Constructs a new CallbackHandlerProtection from a CallbackHandler. |\n\n### Public Method Summary\n\n|-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CallbackHandler](../../../reference/javax/security/auth/callback/CallbackHandler.html) | [getCallbackHandler](../../../reference/java/security/KeyStore.CallbackHandlerProtection.html#getCallbackHandler())() Returns the CallbackHandler. |\n\n### Inherited Method Summary\n\nFrom class [java.lang.Object](../../../reference/java/lang/Object.html) \n\n|-------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Object](../../../reference/java/lang/Object.html) | [clone](../../../reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |\n| boolean | [equals](../../../reference/java/lang/Object.html#equals(java.lang.Object))([Object](../../../reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |\n| void | [finalize](../../../reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |\n| final [Class](../../../reference/java/lang/Class.html)\\\u003c?\\\u003e | [getClass](../../../reference/java/lang/Object.html#getClass())() Returns the unique instance of [Class](../../../reference/java/lang/Class.html) that represents this object's class. |\n| int | [hashCode](../../../reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |\n| final void | [notify](../../../reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |\n| final void | [notifyAll](../../../reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |\n| [String](../../../reference/java/lang/String.html) | [toString](../../../reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |\n| final void | [wait](../../../reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |\n| final void | [wait](../../../reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |\n| final void | [wait](../../../reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |\n\nPublic Constructors\n-------------------\n\n#### public\n**CallbackHandlerProtection**\n([CallbackHandler](../../../reference/javax/security/auth/callback/CallbackHandler.html) handler)\n\nConstructs a new CallbackHandlerProtection from a\nCallbackHandler. \n\n##### Parameters\n\n| handler | the CallbackHandler |\n|---------|---------------------|\n\n##### Throws\n\n| [NullPointerException](../../../reference/java/lang/NullPointerException.html) | if handler is null |\n|--------------------------------------------------------------------------------|--------------------|\n\nPublic Methods\n--------------\n\n#### public [CallbackHandler](../../../reference/javax/security/auth/callback/CallbackHandler.html)\n**getCallbackHandler**\n()\n\nReturns the CallbackHandler. \n\n##### Returns\n\n- the CallbackHandler."]]