@Override
		public void onEncryptedAppTicket(SteamResult result) {
			System.out.println("app ticket encrypted: " + result.name());

			try {
				int[] ticketSize = new int[1];
				ticketEncrypt.clear();
				ticketDecrypt.clear();

				if (user.getEncryptedAppTicket(ticketEncrypt, ticketSize)) {
					System.out.println("encrypted app ticket size: " + ticketSize[0]);
					ticketEncrypt.limit(ticketSize[0]);

					if (encryptedAppTicket.decryptTicket(ticketEncrypt, ticketDecrypt, privateKey, ticketSize)) {
						System.out.println("decrypted app ticket size: " + ticketSize[0]);
						ticketDecrypt.limit(ticketSize[0]);

						ByteBuffer dataIncluded = ByteBuffer.allocateDirect(100);
						int dataLength = encryptedAppTicket.getUserVariableData(ticketDecrypt, dataIncluded);
						if (dataLength > 0) {
							dataIncluded.limit(dataLength);
							byte[] userData = new byte[dataLength];
							dataIncluded.get(userData);
							String userString = new String(userData, Charset.defaultCharset());
							System.out.println("included user data: " + dataLength + " bytes, '" + userString + "'");
						}
					} else {
						System.err.println("failed to decrypt app ticket");
					}
				} else {
					System.err.println("failed to get encrypted app ticket");
				}
			} catch (SteamException e) {
				e.printStackTrace();
			}
		}
Expects a binary file <i>encryptedappticket.key</i> in the working directory. The file should contain
exactly {@link SteamEncryptedAppTicket#SymmetricKeyLen} bytes, which match the private key for the
AppID specified in <i>steam_appid.txt</i>.
tests/src/main/java/com/codedisaster/steamworks/test/SteamEncryptedAppTicketTest.java