| java.lang.Object com.sun.jbi.internal.security.https.HttpSecurityHandler
HttpSecurityHandler | public HttpSecurityHandler(SSLHelper sslHelper)(Code) | | Constructor.
Parameters: sslHelper - is the SSLHelper instance. |
authenticateSenderRequest | public Subject authenticateSenderRequest(HttpServletRequest request, Endpoint endpoint, Subject subject) throws HttpErrorResponseException(Code) | | Authenticate a HttpServletRequest.
If the Endpoint requires SSL Client Authentication, this method gets the Client
Certificate from the request and authenticates the Sender. If a Client Certificate
is missing an exception is thrown.
If the Endpoint does not require SSL Client Authentication none of the above steps
are performed and an empty Subject is returned. This method does not return a null
Subject to avoid NullPOinterExceptions.
Parameters: request - is the HttpServletRequest. Parameters: endpoint - is the targeted Endpoint Parameters: subject - is the Sender subject, if the subject is null a new one is created. throws: HttpErrorResponseException - if a HttpErrorResponse is to be sent back to theclient. the authenticated Sender Subject. |
authenticateSenderRequest | public Subject authenticateSenderRequest(X509Certificate cert, Endpoint endpoint, Subject subject) throws HttpErrorResponseException(Code) | | Authenticate the Sender Request by getting the Sender identity from the
Certificate.
Parameters: cert - is the trusted X.509 Certificate. Parameters: endpoint - is the targeted Endpoint Parameters: subject - is the Subject to be updated. throws: HttpErrorResponseException - if authentication of the request fails. the authenticated Sender Subject |
createSecureClientConnection | public URLConnection createSecureClientConnection(URL serverURL, Endpoint endpoint) throws java.io.IOException(Code) | | Make this a secure Connection. The choice of using SSL3.0/TLS and the TrustStore
Keystore details should come from the endpoint/operation details.
Parameters: serverURL - is the URL of the server to which a secure HTTPs connection isto be established. Parameters: endpoint - is the Endpoint on behalf of which the secure connection is being made. throws: java.io.IOException - on IO realted errors. the secure HTTPs URL Connection |
|
|