/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6287172
* @summary SASL + Digest-MD5, charset quoted
*/
/*
* According to RFC 2831, DIGEST-MD5 servers must generate challenge strings
* whose charset and algorithm values are not enclosed within quotes.
* For example,
* challenge: realm="127.0.0.1",nonce="8GBOabRGeIqZB5BiaYJ1NDTuteV+D7n+qbSTH1fo",qop="auth",charset=utf-8,algorithm=md5-sess
*/
public class NoQuoteParams {
new SampleCallbackHandler();
// client
throw new Exception("Unable to find client implementation for: " +
}
// server
throw new Exception("Unable to find server implementation for: " +
}
}
}
throw new Exception("The challenge string's charset and " +
"algorithm values must not be enclosed within quotes");
}
}
}
if (callbacks[i] instanceof NameCallback) {
} else if (callbacks[i] instanceof PasswordCallback) {
} else if (callbacks[i] instanceof RealmCallback) {
} else {
throw new UnsupportedCallbackException(callbacks[i]);
}
}
}
/**
* In real world apps, this would typically be a TextComponent or
* similar widget.
*/
return "dummy-value";
}
}