| java.lang.Object org.ejbca.core.protocol.xkms.client.XKMSInvoker
XKMSInvoker | public class XKMSInvoker (Code) | | Helper class that performs the prefix replacements
and does the dispatch invokation.
author: Philip Vendil 2006 dec 19 version: $Id: XKMSInvoker.java,v 1.2 2007/01/05 05:32:54 herrvendil Exp $ |
Constructor Summary | |
public | XKMSInvoker(String serviceURL, Collection cacerts) Creates an invoker to the web service at the specified URL
Parameters: serviceURL - the url to the web service. Parameters: cacerts - a collection of trusted CA signing responses. |
Method Summary | |
public LocateResultType | locate(LocateRequestType locateRequestType, X509Certificate signCert, Key privateKey) | public RecoverResultType | recover(RecoverRequestType recoverRequestType, X509Certificate signCert, Key privateKey, String authenticationPassphrase, String recoverKeyBindingId) Creates a recover call to the web service
Parameters: recoverRequestType - the request Parameters: signCert - the certificate that should sign the request, or null of no signing should be performed Parameters: privateKey - the key doing the signing, or null of no signing should be performed Parameters: authenticationPassphrase - the authenticationkeybinding passphrase, use null if it shouldn't be used. Parameters: reissueKeyBindingId - is of the PrototypeKeyBinding tag. | public RegisterResultType | register(RegisterRequestType registerRequestType, X509Certificate signCert, Key privateKey, String authenticationPassphrase, PrivateKey pOPPrivateKey, String prototypeKeyBindingId) Creates a register call to the web service
Parameters: registerRequestType - the request Parameters: signCert - the certificate that should sign the request, or null of no signing should be performed Parameters: privateKey - the key doing the signing, or null of no signing should be performed Parameters: authenticationPassphrase - the authenticationkeybinding passphrase, use null if it shouldn't be used. Parameters: pOPPrivateKey - private key to sign POP Element, use null to not append POPElement Parameters: prototypeKeyBindingId - is of the PrototypeKeyBinding tag. | public ReissueResultType | reissue(ReissueRequestType reissueRequestType, X509Certificate signCert, Key privateKey, String authenticationPassphrase, PrivateKey pOPPrivateKey, String reissueKeyBindingId) Creates a reissue call to the web service
Parameters: reissueRequestType - the request Parameters: signCert - the certificate that should sign the request, or null of no signing should be performed Parameters: privateKey - the key doing the signing, or null of no signing should be performed Parameters: authenticationPassphrase - the authenticationkeybinding passphrase, use null if it shouldn't be used. Parameters: pOPPrivateKey - private key to sign POP Element, use null to not append POPElement Parameters: reissueKeyBindingId - is of the PrototypeKeyBinding tag. | public RevokeResultType | revoke(RevokeRequestType revokeRequestType, X509Certificate signCert, Key privateKey, String authenticationPassphrase, String revokeKeyBindingId) Creates a revoke call to the web service
Parameters: recvokeRequestType - the request Parameters: signCert - the certificate that should sign the request, or null of no signing should be performed Parameters: privateKey - the key doing the signing, or null of no signing should be performed Parameters: authenticationPassphrase - the authenticationkeybinding passphrase, use null if it shouldn't be used. Parameters: revokeKeyBindingId - is of the PrototypeKeyBinding tag. | public ValidateResultType | validate(ValidateRequestType validateRequestType, X509Certificate signCert, Key privateKey) |
XKMSInvoker | public XKMSInvoker(String serviceURL, Collection cacerts)(Code) | | Creates an invoker to the web service at the specified URL
Parameters: serviceURL - the url to the web service. Parameters: cacerts - a collection of trusted CA signing responses. Use null if signed responeses isn't required. |
recover | public RecoverResultType recover(RecoverRequestType recoverRequestType, X509Certificate signCert, Key privateKey, String authenticationPassphrase, String recoverKeyBindingId) throws XKMSResponseSignatureException, StringprepException(Code) | | Creates a recover call to the web service
Parameters: recoverRequestType - the request Parameters: signCert - the certificate that should sign the request, or null of no signing should be performed Parameters: privateKey - the key doing the signing, or null of no signing should be performed Parameters: authenticationPassphrase - the authenticationkeybinding passphrase, use null if it shouldn't be used. Parameters: reissueKeyBindingId - is of the PrototypeKeyBinding tag. a ReissueResultType throws: XKMSResponseSignatureException - if the response signature didn't verify throws: StringprepException - if the passphrase doesn't fullfull the SASLPrep profile |
register | public RegisterResultType register(RegisterRequestType registerRequestType, X509Certificate signCert, Key privateKey, String authenticationPassphrase, PrivateKey pOPPrivateKey, String prototypeKeyBindingId) throws XKMSResponseSignatureException, StringprepException(Code) | | Creates a register call to the web service
Parameters: registerRequestType - the request Parameters: signCert - the certificate that should sign the request, or null of no signing should be performed Parameters: privateKey - the key doing the signing, or null of no signing should be performed Parameters: authenticationPassphrase - the authenticationkeybinding passphrase, use null if it shouldn't be used. Parameters: pOPPrivateKey - private key to sign POP Element, use null to not append POPElement Parameters: prototypeKeyBindingId - is of the PrototypeKeyBinding tag. a RegisterResultType throws: XKMSResponseSignatureException - if the response signature didn't verify throws: StringprepException - if the passphrase doesn't fullfull the SASLPrep profile |
reissue | public ReissueResultType reissue(ReissueRequestType reissueRequestType, X509Certificate signCert, Key privateKey, String authenticationPassphrase, PrivateKey pOPPrivateKey, String reissueKeyBindingId) throws XKMSResponseSignatureException, StringprepException(Code) | | Creates a reissue call to the web service
Parameters: reissueRequestType - the request Parameters: signCert - the certificate that should sign the request, or null of no signing should be performed Parameters: privateKey - the key doing the signing, or null of no signing should be performed Parameters: authenticationPassphrase - the authenticationkeybinding passphrase, use null if it shouldn't be used. Parameters: pOPPrivateKey - private key to sign POP Element, use null to not append POPElement Parameters: reissueKeyBindingId - is of the PrototypeKeyBinding tag. a ReissueResultType throws: XKMSResponseSignatureException - if the response signature didn't verify throws: StringprepException - if the passphrase doesn't fullfull the SASLPrep profile |
revoke | public RevokeResultType revoke(RevokeRequestType revokeRequestType, X509Certificate signCert, Key privateKey, String authenticationPassphrase, String revokeKeyBindingId) throws XKMSResponseSignatureException, StringprepException(Code) | | Creates a revoke call to the web service
Parameters: recvokeRequestType - the request Parameters: signCert - the certificate that should sign the request, or null of no signing should be performed Parameters: privateKey - the key doing the signing, or null of no signing should be performed Parameters: authenticationPassphrase - the authenticationkeybinding passphrase, use null if it shouldn't be used. Parameters: revokeKeyBindingId - is of the PrototypeKeyBinding tag. a RevokeResultType throws: XKMSResponseSignatureException - if the response signature didn't verify throws: StringprepException - if the passphrase doesn't fullfull the SASLPrep profile |
|
|