Class PeerIdentityTrustManagerFactory
java.lang.Object
javax.net.ssl.TrustManagerFactory
io.netty.handler.ssl.util.SimpleTrustManagerFactory
pt.unl.fct.di.novasys.babel2.ssl.PeerIdentityTrustManagerFactory
public class PeerIdentityTrustManagerFactory
extends io.netty.handler.ssl.util.SimpleTrustManagerFactory
TrustManagerFactory implementation that produces PeerIdentityTrustManager
instances for validating Babel 2 self-signed peer certificates.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a factory that trusts all valid Babel 2 self-signed peer certificates.PeerIdentityTrustManagerFactory(Set<String> authorizedPeerIdHashes) Constructs a factory with a set of authorized peer ID hex hashes.PeerIdentityTrustManagerFactory(PeerIdentityTrustManager trustManager) Constructs a factory wrapping an existingPeerIdentityTrustManager. -
Method Summary
Modifier and TypeMethodDescriptionprotected TrustManager[]protected voidengineInit(KeyStore keyStore) protected voidengineInit(ManagerFactoryParameters managerFactoryParameters) Methods inherited from class TrustManagerFactory
getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getProvider, getTrustManagers, init, init
-
Constructor Details
-
PeerIdentityTrustManagerFactory
Constructs a factory wrapping an existingPeerIdentityTrustManager.- Parameters:
trustManager- the trust manager to wrap
-
PeerIdentityTrustManagerFactory
-
PeerIdentityTrustManagerFactory
public PeerIdentityTrustManagerFactory()Constructs a factory that trusts all valid Babel 2 self-signed peer certificates.
-
-
Method Details
-
engineInit
-
engineInit
- Specified by:
engineInitin classio.netty.handler.ssl.util.SimpleTrustManagerFactory- Throws:
Exception
-
engineGetTrustManagers
- Specified by:
engineGetTrustManagersin classio.netty.handler.ssl.util.SimpleTrustManagerFactory
-