public WebReply performInitialChecks ( WebRequest webRequest , String uriName ) { WebReply webReply = null ; HttpServletRequest req = webRequest . getHttpServletRequest ( ) ; String methodName = req . getMethod ( ) ; if ( uriName == null || uriName . length ( ) == 0 ) { return new DenyReply ( "Invalid URI passed to Security Collaborator." ) ; } if ( unsupportedAuthMech ( ) == true ) { return new DenyReply ( "Authentication Failed : DIGEST not supported" ) ; } if ( wasch . isSSLRequired ( webRequest , uriName ) ) { return httpsRedirectHandler . getHTTPSRedirectWebReply ( req ) ; } webReply = unprotectedSpecialURI ( webRequest , uriName , methodName ) ; if ( webReply != null ) { return webReply ; } webReply = unprotectedResource ( webRequest ) ; if ( webReply == PERMIT_REPLY ) { if ( shouldWePerformTAIForUnProtectedURI ( webRequest ) ) return null ; else return webReply ; } return null ; }
Perform the preliminary checks to see if we should proceed to authentication and authorization .