Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


oracle.security.jps.service.login
Interface LoginService

All Superinterfaces:
JpsPersistable, ServiceInstance

public interface LoginService
extends ServiceInstance

This is a generic authentication service which encapsulates configured jaas login module into jps service model. This service defines a method to expose the login context of the configured login module for this service instance


Nested Class Summary

 

Nested classes/interfaces inherited from interface oracle.security.jps.service.JpsPersistable
JpsPersistable.Mode

 

Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAllAuthenticatedRoleProperties()
          This method returns all properties configured for authenticated role Properties - JpsConstants.AUTHENTICATED_ROLE_NAME_PROPERTY - if not configured, then default value JpsConstants.AUTHENTICATED_ROLE_NAME_DEFAULT is returned JpsConstants.AUTHENTICATED_ROLE_UNIQUE_NAME_PROPERTY JpsConstants.AUTHENTICATED_ROLE_DISPLAY_NAME_PROPERTY JpsConstants.AUTHENTICATED_ROLE_DESCRIPTION_PROPERTY
 JpsAuthenticatedRole getAuthenticatedRole()
          This method returns a JpsAuthenticatedRole based on the authenticated role property.
 java.lang.String getAuthenticatedRoleNameProperty()
          This method returns the authenticated role name property JpsConstants.AUTHENTICATED_ROLE_NAME_PROPERTY If this property is not configured it returns JpsConstants.AUTHENTICATED_ROLE_NAME_PROPERTY_DEFAULT
 java.lang.String getContextName()
          This method returns the current jps context name in which this service is configured
 javax.security.auth.login.LoginContext getLoginContext(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler cbh)
          Instantiate a new LoginContext object for the configured login module instance with, a Subject to be authenticated, a CallbackHandler object
 javax.security.auth.login.LoginContext getLoginContext(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler cbh, java.lang.String[] modules)
          This method will return the login context for the login module associated with this context for the given login module names configured as service instance names in this context.
 boolean getRemoveAnonymousRoleProperty()
          This method returns the JpsConstants.REMOVE_ANONYMOUS_ROLE_PROPERTY property.

 

Methods inherited from interface oracle.security.jps.service.ServiceInstance
accept, getName, getServiceProvider

 

Methods inherited from interface oracle.security.jps.service.JpsPersistable
persist, refresh

 

Method Detail

getLoginContext

javax.security.auth.login.LoginContext getLoginContext(javax.security.auth.Subject subject,
                                                       javax.security.auth.callback.CallbackHandler cbh)
                                                       throws javax.security.auth.login.LoginException
Instantiate a new LoginContext object for the configured login module instance with, a Subject to be authenticated, a CallbackHandler object
Parameters:
subject - the Subject to authenticate, or null.
cbh - the CallbackHandler object used by Login Modules to communicate with the user, or null.
Returns:
The configured LoginContext for this instance
Throws:
javax.security.auth.login.LoginException

getLoginContext

javax.security.auth.login.LoginContext getLoginContext(javax.security.auth.Subject subject,
                                                       javax.security.auth.callback.CallbackHandler cbh,
                                                       java.lang.String[] modules)
                                                       throws javax.security.auth.login.LoginException
This method will return the login context for the login module associated with this context for the given login module names configured as service instance names in this context.

If multiple login modules are to be invoked together (i.e. moduleNames contain more than one name), the login modules are invoked exactly as specified in the moduleNames argument.

In other words, if the caller specifies [ "lmA", "lmB" ] in the moduleNames argument, then "lmA" will be invoked prior to "lmB".

Note that the invocation order as implemented by this method differs from the default JDK behavior, which is based on static configuration.

If the subject is null then new subject will be created.

Parameters:
modules - The array of logn module names in this context to invoked as specified
cbh - The callback handler to be used by this login module
subject - The subject used by this login module, if this is null then new subject will be returned
Returns:
LoginContext instance that encapsulates the supplied modules in the specified order
Throws:
javax.security.auth.login.LoginException - when an error condition occurred during method invocation

getContextName

java.lang.String getContextName()
This method returns the current jps context name in which this service is configured
Returns:
The jps context name

getAllAuthenticatedRoleProperties

java.util.Map<java.lang.String,java.lang.String> getAllAuthenticatedRoleProperties()
This method returns all properties configured for authenticated role Properties - JpsConstants.AUTHENTICATED_ROLE_NAME_PROPERTY - if not configured, then default value JpsConstants.AUTHENTICATED_ROLE_NAME_DEFAULT is returned JpsConstants.AUTHENTICATED_ROLE_UNIQUE_NAME_PROPERTY JpsConstants.AUTHENTICATED_ROLE_DISPLAY_NAME_PROPERTY JpsConstants.AUTHENTICATED_ROLE_DESCRIPTION_PROPERTY
Returns:
Map of configured authenticated role properties

getRemoveAnonymousRoleProperty

boolean getRemoveAnonymousRoleProperty()
This method returns the JpsConstants.REMOVE_ANONYMOUS_ROLE_PROPERTY property. If this property is not configured it returns JpsConstants.REMOVE_ANONYMOUS_ROLE_PROPERTY_DEFAULT
Returns:
remove anonymous role property value

getAuthenticatedRoleNameProperty

java.lang.String getAuthenticatedRoleNameProperty()
This method returns the authenticated role name property JpsConstants.AUTHENTICATED_ROLE_NAME_PROPERTY If this property is not configured it returns JpsConstants.AUTHENTICATED_ROLE_NAME_PROPERTY_DEFAULT
Returns:
authenticated role name property

getAuthenticatedRole

JpsAuthenticatedRole getAuthenticatedRole()
                                          throws JpsException
This method returns a JpsAuthenticatedRole based on the authenticated role property.
Returns:
JpsAuthenticatedRole
Throws:
JpsException

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


Copyright © 2011, Oracle. All rights reserved.