class JaasCertificateValidationCallbackHandler extends AbstractJaasValidationCallbackHandler {

	@Override
	protected final void handleInternal(Callback callback) throws UnsupportedCallbackException {
		if (callback instanceof CertificateValidationCallback) {
			((CertificateValidationCallback) callback).setValidator(new JaasCertificateValidator());
		} else {
			throw new UnsupportedCallbackException(callback);
		}
	}

}