Questions tagged [java.security]

16 questions
6
votes
1 answer

Updating the kerberors krb.conf file using "java.security.krb5.conf" System.property() is not working

I want to point to a different krb.conf file, dynamically, without restarting the JVM. I have searched through different solution on Stackoverflow and tried to implement the solution accordingly. But some how, even if I update the…
theimpatientcoder
  • 1,184
  • 3
  • 19
  • 32
3
votes
1 answer

couldn't add my jaas config file to the jdk/security/java.security

so am trying to build a webapp with tomcat and jaas as authentication and my jaas config file is named as lord.config and when i try to add the path in java.security file which is located in JAVA_HOME/conf/security and try to run the web app it…
1
vote
1 answer

How to obtain the ADFS Public Key and validate the signature on a JWT Token?

I need to validate the signature of a JWT token which was signed on an ADFS server. I can validate a self-signed JWT token, but not a token received from ADFS. How should I be obtaining the public key? To get the public key from the ADFS server I…
coding owl
  • 63
  • 2
  • 8
1
vote
1 answer

How to fix Proguard removes java.security code

I am using java.security.PublicKey in my project However, when I enable proguard, I get the following error: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.security.PublicKey.getAlgorithm()' on a null…
Lena Bru
  • 13,521
  • 11
  • 61
  • 126
1
vote
1 answer

How do I instantiate java.security.Principal? All the subclasses are deprecated

I have a Spring API service which accepts Principal. public ResponseEntity create(Principal principal, UrlInfoData urlinfo) throws ApiException; The Principal is created automatically by Spring for OAuth2 API calls. I would like…
Chloe
  • 25,162
  • 40
  • 190
  • 357
0
votes
0 answers

AES-Algorithm with javax.crypo

I am trying to find the implementation of the AES-Algorithm in the javax.crypto repo. When I am using the javax.crypto in my own project and I try to use AES, then I usually define: Cipher cipher = Cipher.getInstance("AES/ECB/...") so obviously the…
schegga_BC
  • 13
  • 3
0
votes
1 answer

Trying to find a single, specific example of a working non-Java API that will interface with the Java-11 java.security RSA encryption

https://docs.oracle.com/en/java/javase/11/security/index.html describes a Java interface but does not specify the default algorithms for things like RSA encryption. I need to interface with code using the Java 11 java.security model for PK…
lembark
  • 21
  • 3
0
votes
0 answers

update to java.security file in linux

I wanted to update java.security file, jdk.tls.disabledalgorithms java 8 to disable weak ssl/TLS ciphers used by application.I have updated with RSA KeySize <= 1024 to disable algorithms with keysize less than or equal to 1024. but when I run the…
0
votes
0 answers

Cannot invoke "java.security.KeyStore.size()" because "this.myKeyStore" is null - Getting error in Intellij Idea

I have a Gradle-based automation framework where I get the * "Cannot invoke "java.security.KeyStore.size()" because "this.myKeyStore" is null "* error when I'm trying to build the project. Following are the versions that I'm using: Gradle -…
0
votes
1 answer

Java code Executed Successfully but not terminated

I have a java code that executed successfully but JVM doesn't exit even after adding system.exit(0); class GetSignatureNew { public static void main (String args[]) { String pwd = "*******"; char[] pin = new…
0
votes
0 answers

org.springframework.security.oauth2 not working properly

I have a problem with initialising org.springframework.security.oauth2. VS code says about troubles resolving it. I think I may have a problem with dependencies and pom.xml, but i don't know how to fix them. It the code below VS doesn't recognize…
MrMRas
  • 11
  • 2
0
votes
1 answer

How to parse (into modulus and exponent) specific ASN1 RSA public key so that one can build RSAPublicKeySpec? Android Java/Kotlin case

I have this public key that is generated from Delphi 10.2 TurboPower LockBox 2…
TomR
  • 2,696
  • 6
  • 34
  • 87
0
votes
1 answer

Bug in Keycloak package? ( ECDSA KeyFactory not available )

When running my keycloak application, the following error appears: java.security.NoSuchAlgorithmException: ECDSA KeyFactory not available at java.base/java.security.KeyFactory.(KeyFactory.java:138) ~[na:na] at…
Ryuu
  • 69
  • 1
  • 9
0
votes
2 answers

I need to encrypt the password from client side using java gwt but import java.security is not available

when i try to compile in java gwt its displaying the issues below The import java.security cannot be resolved MessageDigest cannot be resolved to a type NoSuchAlgorithmException cannot be resolved to a type note: versions used gwt 2.0 java 6 (jre…
0
votes
0 answers

Is there a best way to check certificate revocation status in Java?

I implemented java code, with java.security framework, which sends OCSP requests to an EJBCA OCSP responder in order to check the certificate revocation status of users who send HTTPS requests to my SOAP WebService. I call this code from a…
1
2