Class KeyManagerImpl

java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.auth.saml.key.KeyManagerImpl
All Implemented Interfaces:
net.shibboleth.shared.resolver.Resolver<org.opensaml.security.credential.Credential,net.shibboleth.shared.resolver.CriteriaSet>, KeyManager, Adaptable, Component, Extensible, TimestampedService, org.opensaml.security.credential.CredentialResolver

public class KeyManagerImpl extends DefaultComponent implements KeyManager
An implementation of KeyManager that uses a JKS key store.
  • Field Details

  • Constructor Details

    • KeyManagerImpl

      public KeyManagerImpl()
  • Method Details

    • getApplicationStartedOrder

      public int getApplicationStartedOrder()
      Description copied from interface: Component
      The component notification order for Component.start(ComponentContext).

      Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.

      Specified by:
      getApplicationStartedOrder in interface Component
      Returns:
      the order, 1000 by default
    • start

      public void start(ComponentContext context)
      Description copied from interface: Component
      Start the component. This method is called after all the components were resolved and activated
      Specified by:
      start in interface Component
      Overrides:
      start in class DefaultComponent
    • getKeyHolder

      public Optional<KeyHolder> getKeyHolder(String name)
      Specified by:
      getKeyHolder in interface KeyManager
    • getCredential

      public org.opensaml.security.credential.Credential getCredential(String keyName)
      Specified by:
      getCredential in interface KeyManager
    • getAvailableCredentials

      public Set<String> getAvailableCredentials()
      Specified by:
      getAvailableCredentials in interface KeyManager
    • getCertificate

      public X509Certificate getCertificate(String alias)
      Specified by:
      getCertificate in interface KeyManager
    • resolve

      @Nonnull public Iterable<org.opensaml.security.credential.Credential> resolve(net.shibboleth.shared.resolver.CriteriaSet criteria) throws net.shibboleth.shared.resolver.ResolverException
      Specified by:
      resolve in interface KeyManager
      Specified by:
      resolve in interface net.shibboleth.shared.resolver.Resolver<org.opensaml.security.credential.Credential,net.shibboleth.shared.resolver.CriteriaSet>
      Throws:
      net.shibboleth.shared.resolver.ResolverException
    • resolveSingle

      public org.opensaml.security.credential.Credential resolveSingle(net.shibboleth.shared.resolver.CriteriaSet criteria) throws net.shibboleth.shared.resolver.ResolverException
      Specified by:
      resolveSingle in interface KeyManager
      Specified by:
      resolveSingle in interface net.shibboleth.shared.resolver.Resolver<org.opensaml.security.credential.Credential,net.shibboleth.shared.resolver.CriteriaSet>
      Throws:
      net.shibboleth.shared.resolver.ResolverException