public void test01ClientSignature() throws Exception {
log.trace(">test01ClientSignature");
KeyStore clientKeyStore = Constants.getUserKeyStore();
// Test simple validate
ValidateRequestType validateRequestType = xKMSObjectFactory.createValidateRequestType();
validateRequestType.setId("200");
UseKeyWithType useKeyWithType = xKMSObjectFactory.createUseKeyWithType();
useKeyWithType.setApplication(XKMSConstants.USEKEYWITH_TLSHTTP);
useKeyWithType.setIdentifier("Test");
validateRequestType.getRespondWith().add(XKMSConstants.RESPONDWITH_X509CHAIN);
QueryKeyBindingType queryKeyBindingType = xKMSObjectFactory.createQueryKeyBindingType();
queryKeyBindingType.getUseKeyWith().add(useKeyWithType);
validateRequestType.setQueryKeyBinding(queryKeyBindingType);
JAXBElement<ValidateRequestType> validateRequest = xKMSObjectFactory.createValidateRequest(validateRequestType);
String alias = "TEST";
java.security.cert.X509Certificate pkCert = (java.security.cert.X509Certificate) clientKeyStore.getCertificate(alias);