Code example for PasswordCallback

Methods: getPrompt, isEchoOn

0
public class PasswordCallbackTest extends TestCase {
 
    /** 
     * @tests javax.security.auth.callback.PasswordCallback#PasswordCallback(String prompt, boolean echoOn)  
     * @tests javax.security.auth.callback.PasswordCallback#getPrompt() 
     * @tests javax.security.auth.callback.PasswordCallback#isEchoOn() 
     */ 
    @TestTargets({ 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "PasswordCallback", 
            args = {String.class, boolean.class}
        ), 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "getPrompt", 
            args = {} 
        ), 
        @TestTargetNew(