*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.security
Class AuthenticationService
java.lang.Object
com.sas.services.AbstractRemoteService
com.sas.services.security.AuthenticationService
- All Implemented Interfaces:
com.sas.entities.EntityKeyInterface,ServiceNotificationBroadcasterInterface,RemoteServiceInterface,AuthenticationServiceInterface,Remote
@SASScope("ALL")
@BinaryCompatibilityOnly
public class AuthenticationService
extends AbstractRemoteService
implements AuthenticationServiceInterface
The Authentication Service class. The only useful methods are getDomains which
returns a List of the configured login domains, and getAuthenticator.
- Since:
- 1.0
- See Also:
-
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_NAMEFields 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
Modifier and TypeMethodDescriptionvoidconfigure(ServiceConfigurationInterface serviceConfiguration) Configures service.static final AuthenticationServiceInterfacedefaultInstance(ServiceConfigurationInterface serviceConfiguration, DiscoveryServiceInterface discoveryService) Gets the authentication service.voiddestroy()Destroys the service.Gets a new Authenticator.ListGets a list of domains.StringgetIDPropagation(String domain) Determines whether ID propagation is supported for the specified domain.final StringThe name of the application entry in the JAAS login configuration that applies to this services deployment.final RemoteServiceInterfaceGets the service proxy.voidinitialize(AuthenticationServiceInitObject authServiceConfig) Initializes the Authentication Service using the specified configuration.booleanisTrusted(String domain) Determines whether the specified domain is trusted.Methods inherited from class com.sas.services.AbstractRemoteService
addServiceObserver, bindToDiscoveryService, getCreationTime, getDetails, getDiscoveryService, getEntityKey, getEnvironment, getServiceConfiguration, getServiceConfiguration, getServiceState, handleJVMShutdown, isAccessibleToRemoteClients, isExported, isHandlingJVMShutdown, notifyServiceObservers, reconfigure, removeAllServiceObservers, removeServiceObserver, sameEntity, setDiscoveryService, setEntityKey, setRemoteableExporter, setServiceState, toString, unbindFromDiscoveryServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sas.entities.EntityKeyInterface
getEntityKey, sameEntity, setEntityKeyMethods inherited from interface com.sas.services.RemoteServiceInterface
getCreationTime, getServiceConfiguration, getServiceConfiguration, getServiceState, isAccessibleToRemoteClients, isExported, reconfigure, setServiceStateMethods inherited from interface com.sas.services.mgmt.ServiceNotificationBroadcasterInterface
addServiceObserver, notifyServiceObservers, removeAllServiceObservers, removeServiceObserver
-
Method Details
-
defaultInstance
public static final AuthenticationServiceInterface defaultInstance(ServiceConfigurationInterface serviceConfiguration, DiscoveryServiceInterface discoveryService) throws RemoteException, ServiceException Gets the authentication service.- Parameters:
serviceConfiguration- Service configuration.discoveryService- Discovery service to which the service will be registered.- Returns:
- Singleton authentication service.
- Throws:
RemoteException- if a network anomaly occurs.ServiceException- if unable to obtain an authentication service.
-
configure
public void configure(ServiceConfigurationInterface serviceConfiguration) throws RemoteException, ServiceException Configures service. Note that this method may used to initialize a service or to re-configure a previously initialized service.- Specified by:
configurein interfaceRemoteServiceInterface- Overrides:
configurein classAbstractRemoteService- Parameters:
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. AnServiceExceptionshould be thrown if the initialization was not completed successfully to indicate that the instance should not be used.- Throws:
ServiceException- if unable to configure the service.RemoteException- if a network anomaly is encountered.
-
initialize
public void initialize(AuthenticationServiceInitObject authServiceConfig) throws ServiceException, RemoteException Initializes the Authentication Service using the specified configuration.- Parameters:
authServiceConfig- Authentication Service configuration ornullto use the default configuration.- Throws:
ServiceException- is unable to initialize.RemoteException- if unable to communicate with a remote object or an exception occurred in the remote object.
-
destroy
Destroys the service. The service should release any resources it holds in preparation for termination of use of this service.- Clear list of authenticators
- Clear domains list
- Clear default domain
- Specified by:
destroyin interfaceRemoteServiceInterface- Overrides:
destroyin classAbstractRemoteService- Throws:
RemoteException- if a network anomaly is encountered.ServiceException- if the service is unable to prepare itself for destruction.
-
getServiceProxy
Gets the service proxy.- Specified by:
getServiceProxyin interfaceRemoteServiceInterface- Overrides:
getServiceProxyin classAbstractRemoteService- Returns:
- A proxy to this service or
nullif a proxy is not available.
-
getDomains
public List getDomains() throws RemoteExceptionGets a list of domains.- Specified by:
getDomainsin interfaceAuthenticationServiceInterface- Returns:
- List of
Stringelements representing authentication domains. - Throws:
RemoteException- if a network anomaly is encountered.
-
getAuthenticator
Gets a new Authenticator.- Specified by:
getAuthenticatorin interfaceAuthenticationServiceInterface- Returns:
- A new AuthenticatorInterface object.
- Throws:
RemoteException- if a network anomaly is encountered.
-
getLoginConfigAppName
public final String getLoginConfigAppName() throws RemoteExceptionDescription copied from interface:AuthenticationServiceInterfaceThe name of the application entry in the JAAS login configuration that applies to this services deployment. This value comes from the system propertycom.sas.services.security.LOGIN_CONFIG_APP_NAMEor if there is no value for that property, from the Authentication Service configuration.- Specified by:
getLoginConfigAppNamein interfaceAuthenticationServiceInterface- Returns:
- the name of an application entry in the JAAS login configuration.
- Throws:
RemoteException- if a network anomaly is encountered.- See Also:
-
isTrusted
Determines whether the specified domain is trusted.- Specified by:
isTrustedin interfaceAuthenticationServiceInterface- Parameters:
domain- Domain for which we desire its trusted status.- Returns:
- True if the domain is configured to use the trusted authentication login module, false otherwise.
- Throws:
ServiceException- if unable to determine the trusted status.RemoteException- if unable to communicate with a remote object.
-
getIDPropagation
Determines whether ID propagation is supported for the specified domain.- Specified by:
getIDPropagationin interfaceAuthenticationServiceInterface- Parameters:
domain- Domain for which we desire ID propagation status.- Returns:
- the ID propagation authentication mechanism supported by the named domain
- Throws:
ServiceException- if unable to determine the ID propagation status.RemoteException- if unable to communicate with a remote object.- See Also:
-