Package org.alfresco.filesys.auth
Class PassthruServerFactory
- java.lang.Object
-
- org.alfresco.filesys.auth.PassthruServerFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean,org.springframework.beans.factory.InitializingBean
public class PassthruServerFactory extends java.lang.Object implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBeanA Factory forPassthruServersobjects, allowing setting of the server list via local server, individual servers or domain name.- Author:
- dward
-
-
Field Summary
Fields Modifier and Type Field Description static intDefaultSessionTmostatic intMaxCheckIntervalstatic intMaxSessionTmostatic intMinCheckIntervalstatic intMinSessionTmo
-
Constructor Summary
Constructors Constructor Description PassthruServerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voiddestroy()java.lang.ObjectgetObject()java.lang.Class<?>getObjectType()booleanisSingleton()voidsetBroadcastMask(java.lang.String bcastMask)Set the broadcast mask to use for NetBIOS name lookupsvoidsetDomain(java.lang.String domain)Sets the domain to authenticate againstvoidsetLocalServer(boolean localServer)Indicates whether the local server should be used as the authentication servervoidsetNullDomainUseAnyServer(boolean nullDomain)Set the null domain to use any available server optionvoidsetOfflineCheckInterval(java.lang.Integer offlineCheckInterval)Sets the offline server check interval in secondsvoidsetProtocolOrder(java.lang.String protoOrder)Set the protocol order for passthru connectionsvoidsetServer(java.lang.String server)Sets the server(s) to authenticate against.voidsetTimeout(int timeout)Sets the timeout for opening a session to an authentication server
-
-
-
Field Detail
-
DefaultSessionTmo
public static final int DefaultSessionTmo
- See Also:
- Constant Field Values
-
MinSessionTmo
public static final int MinSessionTmo
- See Also:
- Constant Field Values
-
MaxSessionTmo
public static final int MaxSessionTmo
- See Also:
- Constant Field Values
-
MinCheckInterval
public static final int MinCheckInterval
- See Also:
- Constant Field Values
-
MaxCheckInterval
public static final int MaxCheckInterval
- See Also:
- Constant Field Values
-
-
Method Detail
-
setTimeout
public void setTimeout(int timeout)
Sets the timeout for opening a session to an authentication server- Parameters:
timeout- a time period in milliseconds
-
setLocalServer
public void setLocalServer(boolean localServer)
Indicates whether the local server should be used as the authentication server- Parameters:
localServer-trueif the local server should be used as the authentication server
-
setServer
public void setServer(java.lang.String server)
Sets the server(s) to authenticate against.- Parameters:
server- comma-delimited list of server names
-
setDomain
public void setDomain(java.lang.String domain)
Sets the domain to authenticate against- Parameters:
domain- a domain name
-
setOfflineCheckInterval
public void setOfflineCheckInterval(java.lang.Integer offlineCheckInterval)
Sets the offline server check interval in seconds- Parameters:
offlineCheckInterval- a time interval in seconds
-
setNullDomainUseAnyServer
public final void setNullDomainUseAnyServer(boolean nullDomain)
Set the null domain to use any available server option- Parameters:
nullDomain- boolean
-
setProtocolOrder
public void setProtocolOrder(java.lang.String protoOrder)
Set the protocol order for passthru connections- Parameters:
protoOrder- a comma-delimited list containing one or more of "NetBIOS" and "TCPIP" in any order
-
setBroadcastMask
public final void setBroadcastMask(java.lang.String bcastMask) throws java.io.IOExceptionSet the broadcast mask to use for NetBIOS name lookups- Parameters:
bcastMask- String- Throws:
org.alfresco.error.AlfrescoRuntimeExceptionjava.io.IOException
-
afterPropertiesSet
public void afterPropertiesSet() throws org.alfresco.jlan.server.config.InvalidConfigurationException- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException
-
getObject
public java.lang.Object getObject()
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean
-
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean
-
destroy
public void destroy() throws java.lang.Exception- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
java.lang.Exception
-
-