|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.security.AuthenticationService
public class AuthenticationService
The Authentication Service class. The only useful methods are getDomains which returns a List of the configured login domains, and getAuthenticator.
AuthenticationServiceFactory
,
AuthenticationServiceInitObject
Field Summary |
---|
Fields inherited from interface com.sas.services.security.AuthenticationServiceInterface |
---|
IDPROPAGATION_SSPI, IDPROPAGATION_TRUSTED_PEER, PROPERTYDEFAULT_LOGIN_CONFIG_APP_NAME, PROPERTYNAME_LOGIN_CONFIG_APP_NAME |
Fields inherited from interface com.sas.services.RemoteServiceInterface |
---|
CLASS_IDENTIFIER, CLASS_IDENTIFIER_1_1, CLASS_IDENTIFIER_1_2, CLASS_IDENTIFIER_SERVICE_TYPE, CLASS_IDENTIFIER_SERVICE_TYPE_1_1, CLASS_IDENTIFIER_SERVICE_TYPE_1_2 |
Method Summary | |
---|---|
void |
configure(ServiceConfigurationInterface serviceConfiguration)
Configures service. |
static AuthenticationServiceInterface |
defaultInstance(ServiceConfigurationInterface serviceConfiguration,
DiscoveryServiceInterface discoveryService)
Gets the authentication service. |
void |
destroy()
Destroys the service. |
AuthenticatorInterface |
getAuthenticator()
Gets a new Authenticator. |
java.util.List |
getDomains()
Gets a list of domains. |
java.lang.String |
getIDPropagation(java.lang.String domain)
Determines whether ID propagation is supported for the specified domain. |
java.lang.String |
getLoginConfigAppName()
The name of the application entry in the JAAS login configuration that applies to this services deployment. |
RemoteServiceInterface |
getServiceProxy()
Gets the service proxy. |
void |
initialize(com.sas.services.security.AuthenticationServiceInitObject authServiceConfig)
Initializes the Authentication Service using the specified configuration. |
boolean |
isTrusted(java.lang.String domain)
Determines whether the specified domain is trusted. |
Methods inherited from interface com.sas.services.RemoteServiceInterface |
---|
getCreationTime, getServiceConfiguration, getServiceConfiguration, getServiceState, isAccessibleToRemoteClients, isExported, reconfigure, setServiceState |
Methods inherited from interface com.sas.services.mgmt.ServiceNotificationBroadcasterInterface |
---|
addServiceObserver, notifyServiceObservers, removeAllServiceObservers, removeServiceObserver |
Method Detail |
---|
public static final AuthenticationServiceInterface defaultInstance(ServiceConfigurationInterface serviceConfiguration, DiscoveryServiceInterface discoveryService) throws java.rmi.RemoteException, ServiceException
serviceConfiguration
- Service configuration.discoveryService
- Discovery service to which the service will be registered.
java.rmi.RemoteException
- if a network anomaly occurs.
ServiceException
- if unable to obtain an authentication service.public void configure(ServiceConfigurationInterface serviceConfiguration) throws java.rmi.RemoteException, ServiceException
configure
in interface RemoteServiceInterface
configure
in class AbstractRemoteService
serviceConfiguration
- An object containing configuration data
necessary to initialize or re-configure a service. Note that the
service provider must verify that the object type is supported.
An ServiceException
should be thrown if
the initialization was not completed successfully to indicate that
the instance should not be used.
ServiceException
- if unable to configure the service.
java.rmi.RemoteException
- if a network anomaly is encountered.public void initialize(com.sas.services.security.AuthenticationServiceInitObject authServiceConfig) throws ServiceException, java.rmi.RemoteException
authServiceConfig
- Authentication Service configuration or null
to use
the default configuration.
ServiceException
- is unable to initialize.
java.rmi.RemoteException
- if unable to communicate with a remote object or an exception
occurred in the remote object.public void destroy() throws ServiceException, java.rmi.RemoteException
destroy
in interface RemoteServiceInterface
destroy
in class AbstractRemoteService
java.rmi.RemoteException
- if a network anomaly is encountered.
ServiceException
- if the service is unable to prepare itself
for destruction.public final RemoteServiceInterface getServiceProxy()
getServiceProxy
in interface RemoteServiceInterface
getServiceProxy
in class AbstractRemoteService
null
if a proxy is not available.public java.util.List getDomains() throws java.rmi.RemoteException
getDomains
in interface AuthenticationServiceInterface
String
elements representing
authentication domains.
java.rmi.RemoteException
- if a network anomaly is encountered.public AuthenticatorInterface getAuthenticator() throws java.rmi.RemoteException
getAuthenticator
in interface AuthenticationServiceInterface
java.rmi.RemoteException
- if a network anomaly is encountered.public final java.lang.String getLoginConfigAppName() throws java.rmi.RemoteException
AuthenticationServiceInterface
com.sas.services.security.LOGIN_CONFIG_APP_NAME
or
if there is no value for that property, from
the Authentication Service configuration.
getLoginConfigAppName
in interface AuthenticationServiceInterface
java.rmi.RemoteException
- if a network anomaly is encountered.AuthenticationServiceInterface.PROPERTYNAME_LOGIN_CONFIG_APP_NAME
public boolean isTrusted(java.lang.String domain) throws ServiceException, java.rmi.RemoteException
isTrusted
in interface AuthenticationServiceInterface
domain
- Domain for which we desire its trusted status.
ServiceException
- if unable to determine the trusted status.
java.rmi.RemoteException
- if unable to communicate with a remote object.public java.lang.String getIDPropagation(java.lang.String domain) throws ServiceException, java.rmi.RemoteException
getIDPropagation
in interface AuthenticationServiceInterface
domain
- Domain for which we desire ID propagation status.
ServiceException
- if unable to determine the ID propagation status.
java.rmi.RemoteException
- if unable to communicate with a remote object.AuthenticationServiceInterface.IDPROPAGATION_SSPI
,
AuthenticationServiceInterface.IDPROPAGATION_TRUSTED_PEER
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |