Code example for UnsupportedCallbackException

Methods: getCallback

0
    } 
    catch ( java.io.IOException ioe ) {
      throw new LoginException( ioe.toString() );
    } 
    catch ( UnsupportedCallbackException uce ) {
      throw new LoginException( "CallbackHandler does not support: " + uce.getCallback() );
    } 
    info[0] = username;
    info[1] = password;
     
    return info;
  } 
 
 
  /** 
   * Initialize this LoginModule. 
   * 
   * @param subject          Description of the Parameter 
   * @param callbackHandler  Description of the Parameter 
   * @param sharedState      Description of the Parameter 
   * @param options          Description of the Parameter