-
public class ZitiMain API entry point.
-
-
Method Summary
Modifier and Type Method Description final static ZitiContextnewContext(File idFile, CharArray pwd)Load Ziti identity from the file. final static ZitiContextnewContext(String fname, CharArray pwd)Load Ziti identity from the file. final static UnitremoveContext(ZitiContext ctx)final static Unitinit(String fname, CharArray pwd, Boolean seamless)final static List<ZitiContext>init(KeyStore ks, Boolean seamless)final static ZitiContextenroll(KeyStore ks, ByteArray jwt, String name)final static SocketFactorygetSocketFactory()final static SSLSocketFactorygetSSLSocketFactory()final static DNSResolvergetDNSResolver()final static ZitiConnectionconnect(SocketAddress addr)final static Collection<ZitiContext>getContexts()final static UnitsetApplicationInfo(String id, String version)final static Pair<ZitiContext, Service>getServiceFor(String host, Integer port)final Flow<Pair<ZitiContext, ZitiContext.ServiceEvent>>serviceUpdates()-
-
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/.
-
removeContext
final static Unit removeContext(ZitiContext ctx)
-
init
final static List<ZitiContext> init(KeyStore ks, Boolean seamless)
-
enroll
final static ZitiContext enroll(KeyStore ks, ByteArray jwt, String name)
-
getSocketFactory
final static SocketFactory getSocketFactory()
-
getSSLSocketFactory
final static SSLSocketFactory getSSLSocketFactory()
-
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)
-
serviceUpdates
final Flow<Pair<ZitiContext, ZitiContext.ServiceEvent>> serviceUpdates()
-
-
-
-