Top Description Fields Constructors Methods
org.eclipse.jetty.security.jaas.spi

public Class PropertyFileLoginModule

extends AbstractLoginModule
Class Inheritance
Imports
java.util.Collections, .List, .Map, java.util.stream.Collectors, javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, org.eclipse.jetty.security.PropertyUserStore, .RolePrincipal, .UserPrincipal, org.eclipse.jetty.security.jaas.JAASLoginService, .PropertyUserStoreManager, org.eclipse.jetty.util.resource.Resource, .ResourceFactory, org.slf4j.Logger, .LoggerFactory

PropertyFileLoginModule

Field Summary

Modifier and TypeField and Description
private PropertyUserStore
public static final String
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AbstractLoginModule.JAASUser
public void
initialize(Subject
the subject
subject
,
CallbackHandler
the callback handler
callbackHandler
,
Map<String, ?>
the shared state map
sharedState
,
Map<String, ?>
the options map
options
)

Overrides org.eclipse.jetty.security.jaas.spi.AbstractLoginModule.initialize.

Implements javax.security.auth.spi.LoginModule.initialize.

Use a PropertyUserStore to read the authentication and authorizaton information contained in the file named by the option "file".

private void
setupPropertyUserStore(Map<String, ?>
configuration options
options
)

Get an existing, or create a new PropertyUserStore to read the authentication and authorization information from the file named by the option "file".

Inherited from org.eclipse.jetty.security.jaas.spi.AbstractLoginModule:
abortcommitconfigureCallbacksgetCallbackHandlergetCurrentUsergetSubjectisAuthenticatedisCommittedisIgnoredloginlogoutsetAuthenticatedsetCallbackHandlersetCommittedsetCurrentUsersetSubject

Field Detail

_storeback to summary
private PropertyUserStore _store
DEFAULT_FILENAMEback to summary
public static final String DEFAULT_FILENAME
LOGback to summary
private static final Logger LOG

Constructor Detail

PropertyFileLoginModuleback to summary
public PropertyFileLoginModule()

Method Detail

getUserback to summary
public AbstractLoginModule.JAASUser getUser(String userName) throws Exception

Implements abstract org.eclipse.jetty.security.jaas.spi.AbstractLoginModule.getUser.

Parameters
userName:String

the user name

Annotations
@Override
Exceptions
Exception:
if unable to get the user information
initializeback to summary
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options)

Overrides org.eclipse.jetty.security.jaas.spi.AbstractLoginModule.initialize.

Implements javax.security.auth.spi.LoginModule.initialize.

Use a PropertyUserStore to read the authentication and authorizaton information contained in the file named by the option "file".

Parameters
subject:Subject

the subject

callbackHandler:CallbackHandler

the callback handler

sharedState:Map<String, ?>

the shared state map

options:Map<String, ?>

the options map

Annotations
@Override
See Also
javax.security.auth.spi.LoginModule#initialize(Subject, CallbackHandler, Map, Map)
setupPropertyUserStoreback to summary
private void setupPropertyUserStore(Map<String, ?> options)

Get an existing, or create a new PropertyUserStore to read the authentication and authorization information from the file named by the option "file".

Parameters
options:Map<String, ?>

configuration options