|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.ssl.AbstractSSLContextInitializer
public abstract class AbstractSSLContextInitializer
Provides common implementation for SSL context initializer.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
protected TrustManager[] |
trustManagers
Trust managers. |
| Constructor Summary | |
|---|---|
AbstractSSLContextInitializer()
|
|
| Method Summary | |
|---|---|
protected TrustManager[] |
aggregateTrustManagers(TrustManager... managers)
Creates an AggregateTrustManager containing the supplied trust
managers. |
protected abstract TrustManager[] |
createTrustManagers()
Creates any trust managers specific to this context initializer. |
TrustManager[] |
getTrustManagers()
Returns the trust managers used when creating SSL contexts. |
SSLContext |
initSSLContext(String protocol)
Creates an initialized SSLContext for the supplied protocol. |
void |
setTrustManagers(TrustManager... managers)
Sets the trust managers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ldaptive.ssl.SSLContextInitializer |
|---|
getKeyManagers |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
protected TrustManager[] trustManagers
| Constructor Detail |
|---|
public AbstractSSLContextInitializer()
| Method Detail |
|---|
public TrustManager[] getTrustManagers()
throws GeneralSecurityException
getTrustManagers in interface SSLContextInitializerGeneralSecurityException - if an errors occurs while loading the
TrustManagerspublic void setTrustManagers(TrustManager... managers)
setTrustManagers in interface SSLContextInitializermanagers - trust managers
protected abstract TrustManager[] createTrustManagers()
throws GeneralSecurityException
GeneralSecurityException - if an errors occurs while loading the
TrustManagers
public SSLContext initSSLContext(String protocol)
throws GeneralSecurityException
initSSLContext in interface SSLContextInitializerprotocol - type to use for SSL
GeneralSecurityException - if the SSLContext cannot be createdprotected TrustManager[] aggregateTrustManagers(TrustManager... managers)
AggregateTrustManager containing the supplied trust
managers.
managers - to aggregate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||