Skip to content

chore: add java sample program#26

Open
mir-huzaif wants to merge 1 commit into
masterfrom
huzaif/add-java
Open

chore: add java sample program#26
mir-huzaif wants to merge 1 commit into
masterfrom
huzaif/add-java

Conversation

@mir-huzaif

Copy link
Copy Markdown

No description provided.

@mir-huzaif mir-huzaif requested a review from ahmad-kemsan July 3, 2026 11:58
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcom.cryptlex.lexactivator/​lexactivator@​3.32.39510090100100

View full report

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: maven com.fasterxml.jackson.core:jackson-databind is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: ?maven/com.cryptlex.lexactivator/lexactivator@3.32.3maven/com.fasterxml.jackson.core/jackson-databind@2.14.2

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore maven/com.fasterxml.jackson.core/jackson-databind@2.14.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: maven com.fasterxml.jackson.core:jackson-databind is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: ?maven/com.cryptlex.lexactivator/lexactivator@3.32.3maven/com.fasterxml.jackson.core/jackson-databind@2.14.2

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore maven/com.fasterxml.jackson.core/jackson-databind@2.14.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: maven com.fasterxml.jackson.core:jackson-databind is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: ?maven/com.cryptlex.lexactivator/lexactivator@3.32.3maven/com.fasterxml.jackson.core/jackson-databind@2.14.2

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore maven/com.fasterxml.jackson.core/jackson-databind@2.14.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: maven net.java.dev.jna:jna is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: ?maven/com.cryptlex.lexactivator/lexactivator@3.32.3maven/net.java.dev.jna/jna@5.10.0

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore maven/net.java.dev.jna/jna@5.10.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a Maven-based Java sample application demonstrating LexActivator licensing flows (trial, license activation, and optional release update checks). It also removes the previously included C/C++ example project artifacts under examples/, which should be clarified since it isn’t reflected in the PR title.

Changes:

  • Added a Java sample (Sample.java) showcasing license/trial checks and optional callbacks.
  • Added a Maven pom.xml for building the Java sample with the LexActivator dependency.
  • Removed legacy C/C++ sample project files previously under examples/.

Reviewed changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
java/sample/src/main/java/com/cryptlex/sample/Sample.java Adds a Java sample program demonstrating LexActivator usage and callbacks.
java/sample/pom.xml Adds a Maven build file for the Java sample (Java 11 + lexactivator dependency).
examples/x86/.gitkeep Example directory placeholder (no diff shown).
examples/x64/.gitkeep Example directory placeholder (no diff shown).
examples/Sample.vcxproj Removes Visual Studio C++ sample project.
examples/Sample.sln Removes Visual Studio solution for the C++ sample.
examples/Sample.cpp Removes C++ sample source.
examples/Makefile Removes Makefile for building the sample on non-Windows platforms.
examples/LexTypes.h Removes sample header/types previously included with the example.
examples/LexStatusCodes.h Removes sample status codes header previously included with the example.
examples/LexActivator.h Removes bundled LexActivator C header previously included with the example.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +11
import com.cryptlex.lexactivator.LexActivator;
import com.cryptlex.lexactivator.LicenseCallbackEvent;
import com.cryptlex.lexactivator.ReleaseCallbackEvent;
import com.cryptlex.lexactivator.ReleaseUpdateCallbackEvent;
import com.cryptlex.lexactivator.Release;
import com.cryptlex.lexactivator.LexActivatorException;
import java.io.File;
import java.time.Instant;
import java.io.UnsupportedEncodingException;
System.out.println("Release notes: " + release.notes);
break;
case LexActivator.LA_RELEASE_NO_UPDATE_AVAILABLE:
System.out.println("Current version is already latest....!\n");
Comment thread java/sample/pom.xml
Comment on lines +1 to +3
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants