Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.security
Class SimpleCallbackHandler

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

public class SimpleCallbackHandler
extends BaseCallbackHandler


Nested Class Summary
 
Nested classes/interfaces inherited from class weblogic.security.BaseCallbackHandler
BaseCallbackHandler.CallbackStrategy
 
Constructor Summary
SimpleCallbackHandler(String username, byte[] password)
          Deprecated. Replaced by #SimpleCallbackHandler(String user, byte[] pass, String charsetName)
SimpleCallbackHandler(String username, byte[] password, String charsetName)
          Create a callback handler.
SimpleCallbackHandler(String username, char[] password)
          Create a callback handler passing the password as a character array for security.
SimpleCallbackHandler(String username, String password)
          Deprecated. Replaced by #SimpleCallbackHandler(String user, char[] pass)
 
Method Summary
 
Methods inherited from class weblogic.security.BaseCallbackHandler
addCallbackStrategies, handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCallbackHandler

public SimpleCallbackHandler(String username,
                             char[] password)
Create a callback handler passing the password as a character array for security.


SimpleCallbackHandler

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

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

SimpleCallbackHandler

public SimpleCallbackHandler(String username,
                             String password)
Deprecated. Replaced by #SimpleCallbackHandler(String user, char[] pass)

Create a callback handler passing the password as a string.


SimpleCallbackHandler

public SimpleCallbackHandler(String username,
                             byte[] password)
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.


Copyright 1996, 2014, 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
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02