Class SecretKeyCallback
java.lang.Object
jakarta.security.auth.message.callback.SecretKeyCallback
- All Implemented Interfaces:
Callback
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA request for a secret key identified by its alias.static interfaceRepresents a request for a secret key. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a SecretKeyCallback with the specified request. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Returns the secret key.Returns the request associated with this callback.voidSets the secret key obtained by the runtime.
-
Constructor Details
-
SecretKeyCallback
Constructs a SecretKeyCallback with the specified request.- Parameters:
request- The request describing the secret key to obtain
-
-
Method Details
-
getRequest
Returns the request associated with this callback.- Returns:
- The request describing the secret key to obtain
-
setKey
Sets the secret key obtained by the runtime.- Parameters:
key- The secret key
-
getKey
-