Class SamlAbstractMetadataPublicKeyLoader

java.lang.Object
org.keycloak.protocol.saml.SamlAbstractMetadataPublicKeyLoader
All Implemented Interfaces:
org.keycloak.keys.PublicKeyLoader
Direct Known Subclasses:
SamlMetadataPublicKeyLoader

public abstract class SamlAbstractMetadataPublicKeyLoader extends Object implements org.keycloak.keys.PublicKeyLoader

PublicKeyLoader to retrieve keys from a SAML metadata entity endpoint. It can be used to load IDP or SP keys. The abstract class does not depend on keycloak session.

Author:
rmartinc
  • Constructor Details

    • SamlAbstractMetadataPublicKeyLoader

      public SamlAbstractMetadataPublicKeyLoader(boolean forIdP)
  • Method Details

    • getKeys

      protected abstract String getKeys() throws Exception
      Throws:
      Exception
    • loadKeys

      public org.keycloak.crypto.PublicKeysWrapper loadKeys() throws Exception
      Specified by:
      loadKeys in interface org.keycloak.keys.PublicKeyLoader
      Throws:
      Exception