Package org.openziti
Object Ziti
-
- All Implemented Interfaces:
public class ZitiMain API entry point.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumZiti.IdentityEventTypepublic final classZiti.IdentityEvent
-
Method Summary
-
-
Method Detail
-
newContext
final static ZitiContext newContext(File idFile, CharArray pwd)
Load Ziti identity from the file. The following formats of ziti identity files are supported:
JSON file produced by
ziti-enrollerJKS or PKCS#12 file produced by enroll method
- Parameters:
idFile- file containing identity information (key, certificate, controller url)pwd- password to access the file (only needed for .jks or .pfx/.
-
newContext
final static ZitiContext newContext(String fname, CharArray pwd)
Load Ziti identity from the file. The following formats of ziti identity files are supported:
- Parameters:
fname- path to filepwd- password to access the file (only needed for .jks or .pfx/.
-
newContext
final static ZitiContext newContext(InputStream stream, CharArray pwd)
Load Ziti identity from the input stream. The following formats of ziti identity files are supported:
- Parameters:
stream- input stream with the ziti identitypwd- password to access the keystore (only needed for .jks or .pfx/.
-
removeContext
final static Unit removeContext(ZitiContext ctx)
-
init
final static List<ZitiContext> init(KeyStore ks, Boolean seamless)
-
isSeamless
final static Boolean isSeamless()
-
identityEvents
final Flow<Ziti.IdentityEvent> identityEvents()
-
enroll
final static ZitiContext enroll(KeyStore ks, ByteArray jwt, String name)
-
getSocketFactory
final static SocketFactory getSocketFactory()
-
getSSLSocketFactory
final static SSLSocketFactory getSSLSocketFactory()
-
getSSLSocketFactory
final static SSLSocketFactory getSSLSocketFactory(SSLContext ctx)
-
getDNSResolver
final static DNSResolver getDNSResolver()
-
connect
final static ZitiConnection connect(SocketAddress addr)
-
getContexts
final static Collection<ZitiContext> getContexts()
-
setApplicationInfo
final static Unit setApplicationInfo(String id, String version)
-
getServiceFor
final static Pair<ZitiContext, Service> getServiceFor(String host, Integer port)
-
getServiceFor
final Pair<ZitiContext, Service> getServiceFor(InetSocketAddress addr)
-
findDialInfo
final Pair<ZitiContext, SocketAddress> findDialInfo(InetSocketAddress addr)
-
serviceUpdates
final Flow<Pair<ZitiContext, ZitiContext.ServiceEvent>> serviceUpdates()
-
-
-
-