public interface ComponentContainer
| Modifier and Type | Method and Description |
|---|---|
StrolchAgent |
getAgent() |
<T> T |
getComponent(Class<T> clazz) |
Set<Class<?>> |
getComponentTypes() |
PrivilegeHandler |
getPrivilegeHandler() |
StrolchRealm |
getRealm(Certificate certificate)
Returns the default
StrolchRealm for the user with the given Certificate. |
StrolchRealm |
getRealm(String realm)
Returns the
StrolchRealm with the given name. |
Set<String> |
getRealmNames() |
ComponentState |
getState() |
boolean |
hasComponent(Class<?> clazz) |
StrolchAgent getAgent()
ComponentState getState()
boolean hasComponent(Class<?> clazz)
<T> T getComponent(Class<T> clazz) throws IllegalArgumentException
IllegalArgumentExceptionPrivilegeHandler getPrivilegeHandler() throws IllegalArgumentException
IllegalArgumentExceptionStrolchRealm getRealm(String realm) throws StrolchException
StrolchRealm with the given name. To get the default realm, use the constant
StrolchConstants.DEFAULT_REALM.realm - the name of the StrolchRealm to returnStrolchRealm with the given nameStrolchException - if the StrolchRealm does not exist with the given nameStrolchRealm getRealm(Certificate certificate) throws StrolchException
StrolchRealm for the user with the given Certificate. This is done by
querying the property StrolchConstants.PROP_REALM from the certificate.certificate - the Certificate from which to retrieve the name of the StrolchRealm to returnStrolchRealmStrolchException - if the user does not have a StrolchConstants.PROP_REALM property configured, and the default
realm is not configured, or if the realm does not exist with the found valueCopyright © 2011–2016 Strolch. All rights reserved.