MCPcopy Create free account
hub / github.com/cconlon/kerberos-java-gssapi / main

Method main

examples/gssClient.java:73–90  ·  view source on GitHub ↗
(String argv[])

Source from the content-addressed store, hash-verified

71 private static InputStream serverIn = null;
72
73 public static void main(String argv[]) throws Exception {
74
75 System.out.println("Starting GSS-API Client Example\n");
76
77 connectToServer();
78 initializeGSS();
79 establishContext(serverIn, serverOut);
80 doCommunication(serverIn, serverOut);
81
82 /* shutdown */
83 context.dispose();
84 clientCred.dispose();
85 serverIn.close();
86 serverOut.close();
87 clientSocket.close();
88
89 System.out.println("\nShut down GSS-API and closed connection to server");
90 }
91
92 /**
93 * Connect to example GSS-API server, using specified port and

Callers

nothing calls this directly

Calls 5

connectToServerMethod · 0.95
initializeGSSMethod · 0.95
establishContextMethod · 0.95
doCommunicationMethod · 0.95
disposeMethod · 0.65

Tested by

no test coverage detected