org.fusesource.fabric.jolokia
Class JolokiaSecureHttpContext
java.lang.Object
org.fusesource.fabric.jolokia.JolokiaSecureHttpContext
- All Implemented Interfaces:
- org.osgi.service.cm.ManagedService, org.osgi.service.http.HttpContext
public class JolokiaSecureHttpContext
- extends java.lang.Object
- implements org.osgi.service.http.HttpContext, org.osgi.service.cm.ManagedService
| Fields inherited from interface org.osgi.service.http.HttpContext |
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER |
|
Method Summary |
boolean |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
javax.security.auth.Subject |
doAuthenticate(java.lang.String username,
java.lang.String password)
|
java.lang.String |
getMimeType(java.lang.String name)
|
java.lang.String |
getRealm()
|
java.net.URL |
getResource(java.lang.String name)
|
java.lang.String |
getRole()
|
boolean |
handleSecurity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
updated(java.util.Dictionary props)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JolokiaSecureHttpContext
public JolokiaSecureHttpContext(java.lang.String realm,
java.lang.String role)
- Constructor
getResource
public java.net.URL getResource(java.lang.String name)
- Specified by:
getResource in interface org.osgi.service.http.HttpContext
getMimeType
public java.lang.String getMimeType(java.lang.String name)
- Specified by:
getMimeType in interface org.osgi.service.http.HttpContext
handleSecurity
public boolean handleSecurity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Specified by:
handleSecurity in interface org.osgi.service.http.HttpContext
doAuthenticate
public javax.security.auth.Subject doAuthenticate(java.lang.String username,
java.lang.String password)
authenticate
public boolean authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
getRealm
public java.lang.String getRealm()
getRole
public java.lang.String getRole()
updated
public void updated(java.util.Dictionary props)
throws org.osgi.service.cm.ConfigurationException
- Specified by:
updated in interface org.osgi.service.cm.ManagedService
- Throws:
org.osgi.service.cm.ConfigurationException
Copyright © 2013 Red Hat. All Rights Reserved.