Skip to content

Commit

Permalink
Set minimum JDK version back to 8 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaarni authored Oct 28, 2024
1 parent 646a62e commit 8760d6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 1 addition & 3 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ java {
withSourcesJar()
}

// Compatibility with JDK15.
// - Ed25519 was added in JDK15.
compileJava {
options.release = 15
options.release = 8
}

publishing {
Expand Down
9 changes: 9 additions & 0 deletions lib/src/main/java/fi/protonode/certy/Credential.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,17 @@ public class Credential {

/** Key type values for {@link #keyType}. */
public enum KeyType {
/**
* EC key type.
*/
EC,
/**
* RSA key type.
*/
RSA,
/**
* Ed25519 key type. Ed25519 is supported in JDK 15 and later.
*/
ED25519
}

Expand Down

0 comments on commit 8760d6f

Please sign in to comment.