public class PropertiesCallbackHandler extends UserPropertiesFileLoader implements org.jboss.msc.service.Service<CallbackHandlerService>, CallbackHandlerService, CallbackHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertiesCallbackHandler.ServiceUtil |
COMMENT_PREFIX, DISABLE_SUFFIX_KEY, propertiesFile, PROPERTY_PATTERN| Constructor and Description |
|---|
PropertiesCallbackHandler(String realm,
String path,
String relativeTo,
boolean plainText) |
| Modifier and Type | Method and Description |
|---|---|
CallbackHandler |
getCallbackHandler(Map<String,Object> sharedState)
Obtain a CallbackHandler instance for use during authentication.
|
Map<String,String> |
getConfigurationOptions() |
AuthMechanism |
getPreferredMechanism() |
Set<AuthMechanism> |
getSupplementaryMechanisms() |
CallbackHandlerService |
getValue() |
void |
handle(Callback[] callbacks) |
boolean |
isReadyForHttpChallenge()
Is this CallbackHandler ready for handling HTTP requests that involve a challenge?
To be used by the HTTP interface to display an error if the administrator has not completed the set-up of their
installation.
|
void |
start(org.jboss.msc.service.StartContext context) |
protected void |
verifyProperties(Properties properties)
Provides the base class with an opportunity to verify the contents of the properties before they are used.
|
addLineContent, beginPersistence, endPersistence, getDisabledUserNames, getEnabledUserNames, getRealmName, getUserNames, load, setRealmName, writeescapeString, getPathManagerInjectorInjector, getProperties, loadAsRequired, persistProperties, readFile, safeClose, stoppublic AuthMechanism getPreferredMechanism()
getPreferredMechanism in interface CallbackHandlerServicepublic Set<AuthMechanism> getSupplementaryMechanisms()
getSupplementaryMechanisms in interface CallbackHandlerServicepublic Map<String,String> getConfigurationOptions()
getConfigurationOptions in interface CallbackHandlerServicepublic boolean isReadyForHttpChallenge()
CallbackHandlerServiceisReadyForHttpChallenge in interface CallbackHandlerServiceCallbackHandlerService is ready for challenge based authentication.public CallbackHandler getCallbackHandler(Map<String,Object> sharedState)
CallbackHandlerServicegetCallbackHandler in interface CallbackHandlerServicesharedState - - The state to be shared between the authentication side of the call and the authorization side.protected void verifyProperties(Properties properties) throws IOException
PropertiesFileLoaderverifyProperties in class PropertiesFileLoaderproperties - - The Properties instance to verify.IOExceptionpublic void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<CallbackHandlerService>start in class PropertiesFileLoaderorg.jboss.msc.service.StartExceptionpublic CallbackHandlerService getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<CallbackHandlerService>IllegalStateExceptionIllegalArgumentExceptionpublic void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle in interface CallbackHandlerIOExceptionUnsupportedCallbackExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.