Class PublicKeyJwks

java.lang.Object
io.confluent.kafka.clients.plugins.auth.jwt.PublicKeyJwks

public class PublicKeyJwks extends Object
PublicKeyJwks converts PublicKeys files into a JsonWebKey collection.
  • Constructor Details

  • Method Details

    • loadPublicKey

      public static Collection<PublicKey> loadPublicKey(String pemLocation) throws IOException
      Convert PEM encoded public key files to a PublicKey collection.
      Parameters:
      pemLocation - - location of PEM encoded file or directory containing PEM encoded files.
      Returns:
      collection of successfully loaded public keys.
      Throws:
      IOException - if PEM encoded files cannot be loaded from the filesystem successfully.
    • getJsonWebKeys

      public List<org.jose4j.jwk.JsonWebKey> getJsonWebKeys()