@Override public Object getProperty(String name) { return request.getAttribute(name); }
@Override public Object getProperty(String name) { return request.getAttribute(name); }
private String getRequestPath(Request request) { // get the dispatcher type String requestPath = null; Object attribute = request.getAttribute( Globals.DISPATCHER_REQUEST_PATH_ATTR); if (attribute != null) { requestPath = attribute.toString(); } return requestPath; }
private String getRequestPath(Request request) { // get the dispatcher type String requestPath = null; Object attribute = request.getAttribute( Globals.DISPATCHER_REQUEST_PATH_ATTR); if (attribute != null) { requestPath = attribute.toString(); } return requestPath; }
/** * {@inheritDoc} */ @Override public Object getAttribute(String name) { if (request == null) { throw new IllegalStateException("Null request object"); } return request.getAttribute(name); }
private String getRequestPath(Request request) { // get the dispatcher type String requestPath = null; Object attribute = request.getAttribute( Globals.DISPATCHER_REQUEST_PATH_ATTR); if (attribute != null) { requestPath = attribute.toString(); } return requestPath; }
/** * {@inheritDoc} */ @Override public Object getAttribute(String name) { if (request == null) { throw new IllegalStateException("Null request object"); } return request.getAttribute(name); }
/** * {@inheritDoc} */ @Override public Object getAttribute(String name) { if (request == null) { throw new IllegalStateException("Null request object"); } return request.getAttribute(name); }
/** * {@inheritDoc} */ @Override public Object getAttribute(String name) { if (request == null) { throw new IllegalStateException("Null request object"); } return request.getAttribute(name); }
private String getRequestPath(Request request) { // get the dispatcher type String requestPath = null; Object attribute = request.getAttribute( Globals.DISPATCHER_REQUEST_PATH_ATTR); if (attribute != null) { requestPath = attribute.toString(); } return requestPath; }
/** * {@inheritDoc} */ @Override public Object getAttribute(String name) { if (request == null) { throw new IllegalStateException("Null request object"); } return request.getAttribute(name); }
private String getRequestPath(Request request) { // get the dispatcher type String requestPath = null; Object attribute = request.getAttribute( Globals.DISPATCHER_REQUEST_PATH_ATTR); if (attribute != null) { requestPath = attribute.toString(); } return requestPath; }
/** * {@inheritDoc} */ @Override public Object getAttribute(String name) { if (request == null) { throw new IllegalStateException("Null request object"); } return request.getAttribute(name); }
private String getRequestPath(Request request) { // get the dispatcher type String requestPath = null; Object attribute = request.getAttribute( Globals.DISPATCHER_REQUEST_PATH_ATTR); if (attribute != null) { requestPath = attribute.toString(); } return requestPath; }
/** * get the SSL Client certificate for the given request (if any) * * @param req * - the request to check * @return - the X509Certificate */ protected X509Certificate getCertificate(Request req) { X509Certificate result = null; Object certobj = req.getAttribute(Globals.CERTIFICATES_ATTR); if (certobj != null) { String msg = "certificate " + certobj.getClass().getName() + " found"; LOGGER.finer(msg); if (certobj instanceof java.security.cert.X509Certificate[]) { java.security.cert.X509Certificate[] certs = (X509Certificate[]) certobj; if (certs.length > 0) result = certs[0]; } } return result; }
/** * Return the principal that has been authenticated for this Request. */ public Principal getUserPrincipal() { if (userPrincipal == null) { if (getRequest().isSecure()) { X509Certificate certs[] = (X509Certificate[]) getAttribute( Globals.CERTIFICATES_ATTR); if (FORCE_CLIENT_AUTH_ON_GET_USER_PRINCIPAL && ((certs == null) || (certs.length < 1))) { // Force SSL re-handshake and request client auth certs = (X509Certificate[]) getAttribute( Globals.SSL_CERTIFICATE_ATTR); } if (certs != null && certs.length > 0) { userPrincipal = certs[0].getSubjectX500Principal(); } } } return userPrincipal; }
/** * Return the principal that has been authenticated for this Request. */ public Principal getUserPrincipal() { if (userPrincipal == null) { if (getRequest().isSecure()) { X509Certificate certs[] = (X509Certificate[]) getAttribute( Globals.CERTIFICATES_ATTR); if (FORCE_CLIENT_AUTH_ON_GET_USER_PRINCIPAL && ((certs == null) || (certs.length < 1))) { // Force SSL re-handshake and request client auth certs = (X509Certificate[]) getAttribute( Globals.SSL_CERTIFICATE_ATTR); } if (certs != null && certs.length > 0) { userPrincipal = certs[0].getSubjectX500Principal(); } } } return userPrincipal; }
/** * Return the principal that has been authenticated for this Request. */ public Principal getUserPrincipal() { if (userPrincipal == null) { if (getRequest().isSecure()) { X509Certificate certs[] = (X509Certificate[]) getAttribute( Globals.CERTIFICATES_ATTR); if (FORCE_CLIENT_AUTH_ON_GET_USER_PRINCIPAL && ((certs == null) || (certs.length < 1))) { // Force SSL re-handshake and request client auth certs = (X509Certificate[]) getAttribute( Globals.SSL_CERTIFICATE_ATTR); } if (certs != null && certs.length > 0) { userPrincipal = certs[0].getSubjectX500Principal(); } } } return userPrincipal; }
/** * Return the principal that has been authenticated for this Request. */ public Principal getUserPrincipal() { if (userPrincipal == null) { if (getRequest().isSecure()) { X509Certificate certs[] = (X509Certificate[]) getAttribute( Globals.CERTIFICATES_ATTR); if (FORCE_CLIENT_AUTH_ON_GET_USER_PRINCIPAL && ((certs == null) || (certs.length < 1))) { // Force SSL re-handshake and request client auth certs = (X509Certificate[]) getAttribute( Globals.SSL_CERTIFICATE_ATTR); } if (certs != null && certs.length > 0) { userPrincipal = certs[0].getSubjectX500Principal(); } } } return userPrincipal; }
@Override public PushBuilder newPushBuilder() { Http2Stream http2Stream = null; if (coyoteRequest != null) { http2Stream = (Http2Stream)coyoteRequest.getAttribute(Http2Stream.HTTP2_STREAM_ATTRIBUTE); } if (http2Stream != null && http2Stream.isPushEnabled()) { return new ApplicationPushBuilder(this); } else { return null; } }