Package org.jgroups.protocols
Class SASL
- java.lang.Object
-
- org.jgroups.stack.Protocol
-
- org.jgroups.protocols.SASL
-
@Deprecated public class SASL extends Protocol
Deprecated.Will be removed in 5.0 (not used anymore)The SASL protocol implements authentication and, if requested by the mech, encryption- Author:
- Tristan Tarrant
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.security.auth.callback.CallbackHandlerclient_callback_handlerDeprecated.protected java.lang.Stringclient_nameDeprecated.protected java.lang.Stringclient_passwordDeprecated.protected javax.security.auth.Subjectclient_subjectDeprecated.static shortGMS_IDDeprecated.protected Addresslocal_addrDeprecated.protected java.lang.Stringlogin_module_nameDeprecated.protected java.lang.StringmechDeprecated.protected java.util.Map<Address,SaslContext>sasl_contextDeprecated.static shortSASL_IDDeprecated.protected java.util.Map<java.lang.String,java.lang.String>sasl_propsDeprecated.static java.lang.StringSASL_PROTOCOL_NAMEDeprecated.protected javax.security.auth.callback.CallbackHandlerserver_callback_handlerDeprecated.protected java.lang.Stringserver_nameDeprecated.protected javax.security.auth.Subjectserver_subjectDeprecated.protected longtimeoutDeprecated.-
Fields inherited from class org.jgroups.stack.Protocol
after_creation_hook, down_prot, ergonomics, id, log, stack, stats, up_prot
-
-
Constructor Summary
Constructors Constructor Description SASL()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddestroy()Deprecated.This method is called on aJChannel.close().java.lang.Objectdown(Event evt)Deprecated.An event is to be sent down the stack.java.lang.Objectdown(Message msg)Deprecated.A message is sent down the stack.AddressgetAddress()Deprecated.javax.security.auth.callback.CallbackHandlergetClientCallbackHandler()Deprecated.java.lang.StringgetClientCallbackHandlerClass()Deprecated.javax.security.auth.SubjectgetClientSubject()Deprecated.java.lang.StringgetLoginModulename()Deprecated.java.lang.StringgetMech()Deprecated.java.util.Map<java.lang.String,java.lang.String>getSaslProps()Deprecated.javax.security.auth.callback.CallbackHandlergetServerCallbackHandler()Deprecated.java.lang.StringgetServerCallbackHandlerClass()Deprecated.java.lang.StringgetServerName()Deprecated.javax.security.auth.SubjectgetServerSubject()Deprecated.longgetTimeout()Deprecated.voidinit()Deprecated.Called after instance has been created (null constructor) and before protocol is started.protected voidsendJoinRejectionMessage(Address dest, java.lang.String error_msg)Deprecated.protected voidsendMergeRejectionMessage(Address dest)Deprecated.protected voidsendRejectionMessage(byte type, Address dest, java.lang.String error_msg)Deprecated.protected booleanserverChallenge(GMS.GmsHeader gmsHeader, SaslHeader saslHeader, Message msg)Deprecated.voidsetClientCallbackHandler(javax.security.auth.callback.CallbackHandler client_callback_handler)Deprecated.voidsetClientCallbackHandlerClass(java.lang.String handlerClass)Deprecated.voidsetClientSubject(javax.security.auth.Subject client_subject)Deprecated.voidsetLoginModuleName(java.lang.String login_module_name)Deprecated.voidsetMech(java.lang.String mech)Deprecated.voidsetSaslProps(java.lang.String sasl_props)Deprecated.voidsetSaslPropsMap(java.util.Map<java.lang.String,java.lang.String> sasl_props)Deprecated.voidsetServerCallbackHandler(javax.security.auth.callback.CallbackHandler server_callback_handler)Deprecated.voidsetServerCallbackHandlerClass(java.lang.String handlerClass)Deprecated.voidsetServerName(java.lang.String server_name)Deprecated.voidsetServerSubject(javax.security.auth.Subject server_subject)Deprecated.voidsetTimeout(long timeout)Deprecated.voidstop()Deprecated.This method is called on aJChannel.disconnect().java.lang.Objectup(Message msg)Deprecated.A single message was received.voidup(MessageBatch batch)Deprecated.Sends up a multiple messages in aMessageBatch.-
Methods inherited from class org.jgroups.stack.Protocol
accept, afterCreationHook, enableStats, getConfigurableObjects, getDownProtocol, getDownServices, getId, getIdsAbove, getLevel, getLog, getName, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getUpServices, getValue, isErgonomics, level, parse, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStatistics, resetStats, setDownProtocol, setErgonomics, setId, setLevel, setProtocolStack, setSocketFactory, setUpProtocol, setValue, start, statsEnabled, up
-
-
-
-
Field Detail
-
GMS_ID
public static final short GMS_ID
Deprecated.
-
SASL_ID
public static final short SASL_ID
Deprecated.
-
SASL_PROTOCOL_NAME
public static final java.lang.String SASL_PROTOCOL_NAME
Deprecated.- See Also:
- Constant Field Values
-
login_module_name
protected java.lang.String login_module_name
Deprecated.
-
client_name
protected java.lang.String client_name
Deprecated.
-
client_password
protected java.lang.String client_password
Deprecated.
-
mech
protected java.lang.String mech
Deprecated.
-
sasl_props
protected java.util.Map<java.lang.String,java.lang.String> sasl_props
Deprecated.
-
server_name
protected java.lang.String server_name
Deprecated.
-
timeout
protected long timeout
Deprecated.
-
client_callback_handler
protected javax.security.auth.callback.CallbackHandler client_callback_handler
Deprecated.
-
server_callback_handler
protected javax.security.auth.callback.CallbackHandler server_callback_handler
Deprecated.
-
client_subject
protected javax.security.auth.Subject client_subject
Deprecated.
-
server_subject
protected javax.security.auth.Subject server_subject
Deprecated.
-
local_addr
protected Address local_addr
Deprecated.
-
sasl_context
protected final java.util.Map<Address,SaslContext> sasl_context
Deprecated.
-
-
Method Detail
-
setClientCallbackHandlerClass
public void setClientCallbackHandlerClass(java.lang.String handlerClass) throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
getClientCallbackHandlerClass
public java.lang.String getClientCallbackHandlerClass()
Deprecated.
-
getClientCallbackHandler
public javax.security.auth.callback.CallbackHandler getClientCallbackHandler()
Deprecated.
-
setClientCallbackHandler
public void setClientCallbackHandler(javax.security.auth.callback.CallbackHandler client_callback_handler)
Deprecated.
-
setServerCallbackHandlerClass
public void setServerCallbackHandlerClass(java.lang.String handlerClass) throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
getServerCallbackHandlerClass
public java.lang.String getServerCallbackHandlerClass()
Deprecated.
-
getServerCallbackHandler
public javax.security.auth.callback.CallbackHandler getServerCallbackHandler()
Deprecated.
-
setServerCallbackHandler
public void setServerCallbackHandler(javax.security.auth.callback.CallbackHandler server_callback_handler)
Deprecated.
-
setLoginModuleName
public void setLoginModuleName(java.lang.String login_module_name)
Deprecated.
-
getLoginModulename
public java.lang.String getLoginModulename()
Deprecated.
-
setMech
public void setMech(java.lang.String mech)
Deprecated.
-
getMech
public java.lang.String getMech()
Deprecated.
-
setSaslProps
public void setSaslProps(java.lang.String sasl_props)
Deprecated.
-
setSaslPropsMap
public void setSaslPropsMap(java.util.Map<java.lang.String,java.lang.String> sasl_props)
Deprecated.
-
getSaslProps
public java.util.Map<java.lang.String,java.lang.String> getSaslProps()
Deprecated.
-
setClientSubject
public void setClientSubject(javax.security.auth.Subject client_subject)
Deprecated.
-
getClientSubject
public javax.security.auth.Subject getClientSubject()
Deprecated.
-
setServerSubject
public void setServerSubject(javax.security.auth.Subject server_subject)
Deprecated.
-
getServerSubject
public javax.security.auth.Subject getServerSubject()
Deprecated.
-
setServerName
public void setServerName(java.lang.String server_name)
Deprecated.
-
getServerName
public java.lang.String getServerName()
Deprecated.
-
setTimeout
public void setTimeout(long timeout)
Deprecated.
-
getTimeout
public long getTimeout()
Deprecated.
-
getAddress
public Address getAddress()
Deprecated.
-
init
public void init() throws java.lang.ExceptionDeprecated.Description copied from class:ProtocolCalled after instance has been created (null constructor) and before protocol is started. Properties are already set. Other protocols are not yet connected and events cannot yet be sent.
-
stop
public void stop()
Deprecated.Description copied from class:ProtocolThis method is called on aJChannel.disconnect(). Stops work (e.g. by closing multicast socket). Will be called from top to bottom. This means that at the time of the method invocation the neighbor protocol below is still working. This method will replace the STOP, STOP_OK, CLEANUP and CLEANUP_OK events. The ProtocolStack guarantees that when this method is called all messages in the down queue will have been flushed
-
destroy
public void destroy()
Deprecated.Description copied from class:ProtocolThis method is called on aJChannel.close(). Does some cleanup; after the call the VM will terminate
-
up
public java.lang.Object up(Message msg)
Deprecated.Description copied from class:ProtocolA single message was received. Protocols may examine the message and do something (e.g. add a header) with it before passing it up.
-
up
public void up(MessageBatch batch)
Deprecated.Description copied from class:ProtocolSends up a multiple messages in aMessageBatch. The sender of the batch is always the same, and so is the destination (null == multicast messages). Messages in a batch can be OOB messages, regular messages, or mixed messages, although the transport itself will create initial MessageBatches that contain only either OOB or regular messages. The default processing below sends messages up the stack individually, based on a matching criteria (callingProtocol.accept(org.jgroups.Message)), and - if true - callsProtocol.up(org.jgroups.Event)for that message and removes the message. If the batch is not empty, it is passed up, or else it is dropped. Subclasses should check if there are any messages destined for them (e.g. usingMessageBatch.getMatchingMessages(short,boolean)), then possibly remove and process them and finally pass the batch up to the next protocol. Protocols can also modify messages in place, e.g. ENCRYPT could decrypt all encrypted messages in the batch, not remove them, and pass the batch up when done.
-
down
public java.lang.Object down(Event evt)
Deprecated.Description copied from class:ProtocolAn event is to be sent down the stack. A protocol may want to examine its type and perform some action on it, depending on the event's type. If the event is a message MSG, then the protocol may need to add a header to it (or do nothing at all) before sending it down the stack usingdown_prot.down().
-
down
public java.lang.Object down(Message msg)
Deprecated.Description copied from class:ProtocolA message is sent down the stack. Protocols may examine the message and do something (e.g. add a header) with it before passing it down.
-
serverChallenge
protected boolean serverChallenge(GMS.GmsHeader gmsHeader, SaslHeader saslHeader, Message msg)
Deprecated.
-
sendRejectionMessage
protected void sendRejectionMessage(byte type, Address dest, java.lang.String error_msg)Deprecated.
-
sendJoinRejectionMessage
protected void sendJoinRejectionMessage(Address dest, java.lang.String error_msg)
Deprecated.
-
sendMergeRejectionMessage
protected void sendMergeRejectionMessage(Address dest)
Deprecated.
-
-