Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06

weblogic.security
Class SimpleCallbackHandler

java.lang.Object
  extended by weblogic.security.SimpleCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class SimpleCallbackHandler
extends Object
implements CallbackHandler

A simple CallbackHandler used for returning a username and password.


Constructor Summary
SimpleCallbackHandler(String user, byte[] pass)
          Deprecated. Replaced by #SimpleCallbackHandler(String user, byte[] pass, String charsetName)
SimpleCallbackHandler(String user, byte[] pass, String charsetName)
          Create a callback handler.
SimpleCallbackHandler(String user, String pass)
          Deprecated.  
 
Method Summary
 void handle(Callback[] callbacks)
          Handle the callbacks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCallbackHandler

public SimpleCallbackHandler(String user,
                             String pass)
Deprecated. 

Create a callback handler.

Parameters:
user - the username
pass - the password

SimpleCallbackHandler

public SimpleCallbackHandler(String user,
                             byte[] pass)
Deprecated. Replaced by #SimpleCallbackHandler(String user, byte[] pass, String charsetName)

Create a callback handler. This constructor converts the specified password in byte array to char array using the platform's default charset. The SimpleCallbackHandler.SimpleCallbackHandler(String user, byte[] pass, String charsetName) should be used when more control over the decoding process is required.

Parameters:
user - the username
pass - the password

SimpleCallbackHandler

public SimpleCallbackHandler(String user,
                             byte[] pass,
                             String charsetName)
Create a callback handler. This constructor converts the specified password in byte array to char array using the specified charset.

Parameters:
user - the username
pass - the password
charsetName - the name of a supported charset used to decode the password in byte array
Method Detail

handle

public void handle(Callback[] callbacks)
            throws UnsupportedCallbackException
Handle the callbacks.

Specified by:
handle in interface CallbackHandler
Throws:
UnsupportedCallbackException

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06