Class KeyManagerImpl

java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.auth.saml.key.KeyManagerImpl
All Implemented Interfaces:
net.shibboleth.utilities.java.support.resolver.Resolver<org.opensaml.security.credential.Credential,net.shibboleth.utilities.java.support.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

    • registerContribution

      public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
      Overrides:
      registerContribution in class DefaultComponent
    • unregisterContribution

      public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
      Overrides:
      unregisterContribution in class DefaultComponent
    • 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
    • getSigningCredential

      public org.opensaml.security.credential.Credential getSigningCredential()
      Specified by:
      getSigningCredential in interface KeyManager
    • getEncryptionCredential

      public org.opensaml.security.credential.Credential getEncryptionCredential()
      Specified by:
      getEncryptionCredential in interface KeyManager
    • getTlsCredential

      public org.opensaml.security.credential.Credential getTlsCredential()
      Specified by:
      getTlsCredential in interface KeyManager
    • resolve

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

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