public Credentials getCredentials ( ) { String username = getUsername ( ) ; char [ ] password = getPassword ( ) ; if ( username != null ) { return new SimpleCredentials ( username , password ) ; } return null ; }
Return the credentials based on the user name and password .