|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.beepcore.beep.core.TuningProfile | +--org.beepcore.beep.profile.tls.TLSProfile
TLS provides encrypted and authenticated communication over a session. TLS is a tuning profile, a special set of profiles that affect an entire session. As a result, only one channel with the profile of TLS may be open per session.
init(java.lang.String, org.beepcore.beep.profile.ProfileConfiguration)
,
Profile
,
Channel
Field Summary | |
static java.lang.String |
URI
default URI of the channel to start to start a TLS channel |
Constructor Summary | |
TLSProfile()
|
Method Summary | |
static TLSProfile |
getDefaultInstance()
factory method that returns an instance the default implementation. |
static TLSProfile |
getInstance(java.lang.String provider)
factory method that returns an instance of the implementation given in the parameter. |
abstract StartChannelListener |
init(java.lang.String uri,
ProfileConfiguration config)
init sets the criteria for which an TLS connection is made when a TLS channel is started for a profile. |
abstract TCPSession |
startTLS(TCPSession session)
start a channel for the TLS profile. |
Methods inherited from class org.beepcore.beep.core.TuningProfile |
abort, begin, complete, disableIO, enableIO, reset, sendProfile, setLocalCredential, setPeerCredential, startChannel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String URI
Constructor Detail |
public TLSProfile()
Method Detail |
public abstract StartChannelListener init(java.lang.String uri, ProfileConfiguration config) throws BEEPException
Each subclass that encapsulates an implementation has its own properties as to what it needs to initialise. See the individual implementations for their properties.
init
in interface Profile
uri
- used to start a channel with TLS protectionconfig
- used to specify the parameters for sessions protected
by this profile's version of TLS. In other words, if you want another
set of paramters, you must either recall this method or create another
instance of a TLSProfile
.
StartChannelListener
for
the specified uri.
BEEPException
public abstract TCPSession startTLS(TCPSession session) throws BEEPException
init
method Upon
returning, all traffic over the session will be entrusted as
per these parameters.
session
- the session to encrypt communcation for
TCPSession
with TLS negotiated.
BEEPException
- an error occurs during the channel start
request or the TLS handshake (such as trying to negotiate an
anonymous connection with a peer that doesn't support an
anonymous cipher suite).profile configuration
public static TLSProfile getDefaultInstance() throws BEEPException
BEEPException
public static TLSProfile getInstance(java.lang.String provider) throws BEEPException
provider
- implementation to use.
BEEPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |