IT. Expert System.

Java Enterprise Edition (EE)

SecretKeyCallback


javax.security.auth.message.callback
Class SecretKeyCallback

java.lang.Object
  javax.security.auth.message.callback.SecretKeyCallback
All Implemented Interfaces:
javax.security.auth.callback.Callback
public class SecretKeyCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback

Callback for acquiring a shared secret from a key repository. This Callback may be used by client or server authentication modules to obtain shared secrets (for example, passwords) without relying on a user during the Callback processing. This Callback is typically empoyed by ClientAuthModules invoked from intermediate components that need to acquire a password to authenticate to their target service.

Version:
%I%, %G%

Nested Class Summary
static class SecretKeyCallback.AliasRequest
          Request type for secret keys that are identified using an alias.
static interface SecretKeyCallback.Request
          Marker interface for secret key request types.
 
Constructor Summary
SecretKeyCallback(SecretKeyCallback.Request request)
          Constructs this SecretKeyCallback with a secret key Request object.
 
Method Summary
 javax.crypto.SecretKey getKey()
          Used to obtain the secret key set within the Callback.
 SecretKeyCallback.Request getRequest()
          Used by the CallbackHandler to get the Request object which identifies the secret key to be returned.
 void setKey(javax.crypto.SecretKey key)
          Used by the CallbackHandler to set the requested secret key within the Callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecretKeyCallback

public SecretKeyCallback(SecretKeyCallback.Request request)
Constructs this SecretKeyCallback with a secret key Request object.

The request object identifies the secret key to be returned. If the alias is null, the handler of the callback relies on its own default.

Parameters:
request - Request object identifying the secret key, or null.
Method Detail

getRequest

public SecretKeyCallback.Request getRequest()
Used by the CallbackHandler to get the Request object which identifies the secret key to be returned.

Returns:
The Request object which identifies the private key to be returned, or null. If null, the handler of the callback relies on its own default.

setKey

public void setKey(javax.crypto.SecretKey key)
Used by the CallbackHandler to set the requested secret key within the Callback.

Parameters:
key - The secret key, or null if no key was found.

getKey

public javax.crypto.SecretKey getKey()
Used to obtain the secret key set within the Callback.

Returns:
The secret key, or null if no key was found.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 11002 / . Delta: 0.11369 с