Code Monkey home page Code Monkey logo

Comments (6)

emcrisostomo avatar emcrisostomo commented on May 22, 2024

Hi @rhussel,

The library currently gets a SecureRandom instance using the SecureRandom#getInstance method and specifying the SHA1PRNG algorithm and the SUN provider. So, the system you are using has no access to this implementation. What is it, out of curiosity?

However, the non-overridability of the provider and algorithm the library is using is an outstanding issue I'm aware of.

I'm renaming this issue for clarity's sake and leave it open until this one is resolved.

from googleauth.

emcrisostomo avatar emcrisostomo commented on May 22, 2024

@rhussel,

You should now be able to override the random number generator algorithm and provider using the latest release (v. 0.5.0) which has already been published on the Sonatype's Central Repository. Please, check out its documentation to see how to do it.

from googleauth.

senthilkumarkj avatar senthilkumarkj commented on May 22, 2024

hi @emcrisostomo, we can use SUN provider even when we run openjdk right? Any idea when this would fail? (or when SUN provider will not be available?)

from googleauth.

jymot avatar jymot commented on May 22, 2024

Hey, how did you solve the problem? Can you please share?

from googleauth.

emcrisostomo avatar emcrisostomo commented on May 22, 2024

Hi @motcwang, yes the problem is solved and yes, I can share. I'm quoting myself a couple of posts ago:

You should now be able to override the random number generator algorithm and provider using the latest release (v. 0.5.0) which has already been published on the Sonatype's Central Repository. Please, check out its documentation to see how to do it.

Did you check the documentation? Hint: Section 3.1, Random Number Generator Algorithm and Provider.

from googleauth.

b8x avatar b8x commented on May 22, 2024

List secure rendom providers list using

Provider[] secureRandomProviders = Security.getProviders("SecureRandom.SHA1PRNG");

You can get name of provider (if any) using

secureRandomProviders[0].getName();

from googleauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.