Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


com.bea.wli.sb.security
Interface UsernamePassword


public interface UsernamePassword

This interface encapsulates a username/password pair. Instances of UsernamePassword are immutable.

Note: implementations of this interface are not required to be thread-safe. Clients of this interface are responsible to do synchronization if required by the usage pattern.


Method Summary
 char[] getPassword()
          Note: to maintain the immutability of UsernamePassword, a new copy of the password character array is returned.
 java.lang.String getPasswordString()
           
 java.lang.String getUsername()
           

 

Method Detail

getUsername

java.lang.String getUsername()
Returns:
the username
Throws:
java.lang.IllegalStateException - if this UsernamePassword has already been disposed.

getPassword

char[] getPassword()
Note: to maintain the immutability of UsernamePassword, a new copy of the password character array is returned.
Returns:
the password
Throws:
java.lang.IllegalStateException - if this UsernamePassword has already been disposed.

getPasswordString

java.lang.String getPasswordString()
Returns:
the password
Throws:
java.lang.IllegalStateException - if this UsernamePassword has already been disposed.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


Copyright © 2008, 2012, Oracle. All rights reserved.