Index | News | FAQ | Download | Lists | Issues | |||||||||||||||||
OverviewGeneralConfigurationServersIntegrationsCommunityFeeds
|
Security - How To.We've got basic username and password login which can be done with either the org.apache.openejb.client.LocalInitialContextFactory or org.apache.openejb.client.RemoteInitialContextFactory. You simply construct your InitialContext with the standard javax.naming.Context properties for user/pass info, which is: Properties props = new Properties(); props.setProperty(Context.SECURITY_PRINCIPAL, "someuser"); props.setProperty(Context.SECURITY_CREDENTIALS, "thepass"); InitialContext ctx = new InitialContext(props); ctx.lookup(...); That will get you logged in and all your calls from that context should execute as you. There are three new security related files:
users.properties and groups.properties are for configuring users and groups using a properties file approach which is somewhat unix-like in nature. These are used by the PropertiesLoginModule and are read in on every PLUG POINTSThere are four-five different plug points where you could customize the functionality. From largest to smallest:
|
||||||||||||||||
Powered by Atlassian Confluence.
|