public class MyTrustManagerFactorySpi extends TrustManagerFactorySpi
Modifier and Type | Class and Description |
---|---|
static class |
MyTrustManagerFactorySpi.Parameters |
Constructor and Description |
---|
MyTrustManagerFactorySpi() |
Modifier and Type | Method and Description |
---|---|
protected TrustManager[] |
engineGetTrustManagers()
Returns the list of
TrustManager s with one entry for each type
of trust material. |
protected void |
engineInit(KeyStore ks)
Initializes this factory instance with the specified keystore as source
of certificate authorities and trust material.
|
protected void |
engineInit(ManagerFactoryParameters spec)
Initializes this factory instance with the specified provider-specific
parameters for a source of trust material.
|
protected void engineInit(KeyStore ks) throws KeyStoreException
TrustManagerFactorySpi
engineInit
in class TrustManagerFactorySpi
ks
- the keystore or null
.KeyStoreException
- if the initialization fails.protected void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterException
TrustManagerFactorySpi
engineInit
in class TrustManagerFactorySpi
spec
- the provider-specific parameters.InvalidAlgorithmParameterException
- if the initialization fails.protected TrustManager[] engineGetTrustManagers()
TrustManagerFactorySpi
TrustManager
s with one entry for each type
of trust material.engineGetTrustManagers
in class TrustManagerFactorySpi
TrustManager
s