org.apache.qpid.proton.engine.impl.ssl
Class SslDomainImpl

java.lang.Object
  extended by org.apache.qpid.proton.engine.impl.ssl.SslDomainImpl
All Implemented Interfaces:
ProtonSslEngineProvider, SslDomain

public class SslDomainImpl
extends Object
implements SslDomain, ProtonSslEngineProvider


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.qpid.proton.engine.SslDomain
SslDomain.Mode, SslDomain.VerifyMode
 
Constructor Summary
SslDomainImpl()
           
 
Method Summary
 boolean allowUnsecuredClient()
           
 void allowUnsecuredClient(boolean allowUnsecured)
           
 ProtonSslEngine createSslEngine(SslPeerDetails peerDetails)
          Returns an SSL engine.
 String getCertificateFile()
           
 SslDomain.Mode getMode()
           
 SslDomain.VerifyMode getPeerAuthentication()
           
 String getPrivateKeyFile()
           
 String getPrivateKeyPassword()
           
 String getTrustedCaDb()
           
 void init(SslDomain.Mode mode)
           
 void setCredentials(String certificateFile, String privateKeyFile, String privateKeyPassword)
           
 void setPeerAuthentication(SslDomain.VerifyMode verifyMode)
           
 void setTrustedCaDb(String certificateDb)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SslDomainImpl

public SslDomainImpl()
Method Detail

init

public void init(SslDomain.Mode mode)
Specified by:
init in interface SslDomain

getMode

public SslDomain.Mode getMode()
Specified by:
getMode in interface SslDomain

setCredentials

public void setCredentials(String certificateFile,
                           String privateKeyFile,
                           String privateKeyPassword)
Specified by:
setCredentials in interface SslDomain

setTrustedCaDb

public void setTrustedCaDb(String certificateDb)
Specified by:
setTrustedCaDb in interface SslDomain

getTrustedCaDb

public String getTrustedCaDb()
Specified by:
getTrustedCaDb in interface SslDomain

setPeerAuthentication

public void setPeerAuthentication(SslDomain.VerifyMode verifyMode)
Specified by:
setPeerAuthentication in interface SslDomain

getPeerAuthentication

public SslDomain.VerifyMode getPeerAuthentication()
Specified by:
getPeerAuthentication in interface SslDomain

getPrivateKeyFile

public String getPrivateKeyFile()
Specified by:
getPrivateKeyFile in interface SslDomain

getPrivateKeyPassword

public String getPrivateKeyPassword()
Specified by:
getPrivateKeyPassword in interface SslDomain

getCertificateFile

public String getCertificateFile()
Specified by:
getCertificateFile in interface SslDomain

allowUnsecuredClient

public void allowUnsecuredClient(boolean allowUnsecured)
Specified by:
allowUnsecuredClient in interface SslDomain

allowUnsecuredClient

public boolean allowUnsecuredClient()
Specified by:
allowUnsecuredClient in interface SslDomain

createSslEngine

public ProtonSslEngine createSslEngine(SslPeerDetails peerDetails)
Description copied from interface: ProtonSslEngineProvider
Returns an SSL engine.

Specified by:
createSslEngine in interface ProtonSslEngineProvider

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.