Interface KeyManager

  • All Implemented Interfaces:

    
    public interface KeyManager
    
                        

    Interface representing a key management system.

    The KeyManager interface defines methods for importing private JSON Web Keys (JWKs) and retrieving signers for public JWKs.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Jwk importPrivateJwk(Jwk privateJwk) Imports a private JWK and returns the corresponding public JWK.
      abstract Signer getSigner(Jwk publicJwk) Retrieves a signer for a given public JWK.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • importPrivateJwk

         abstract Jwk importPrivateJwk(Jwk privateJwk)

        Imports a private JWK and returns the corresponding public JWK.

        Parameters:
        privateJwk - The private JWK to import.
        Returns:

        The public JWK after import.

      • getSigner

         abstract Signer getSigner(Jwk publicJwk)

        Retrieves a signer for a given public JWK.

        Parameters:
        publicJwk - The public JWK for which to retrieve the signer.
        Returns:

        The signer associated with the public JWK.