Class KeyManagerImpl
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.ecm.platform.auth.saml.key.KeyManagerImpl
-
- All Implemented Interfaces:
KeyManager
,Adaptable
,Component
,Extensible
,TimestampedService
,org.opensaml.xml.security.credential.CredentialResolver
,org.opensaml.xml.security.Resolver<org.opensaml.xml.security.credential.Credential,org.opensaml.xml.security.CriteriaSet>
public class KeyManagerImpl extends DefaultComponent implements KeyManager
An implementation ofKeyManager
that uses a JKS key store.
-
-
Field Summary
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description KeyManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getAvailableCredentials()
X509Certificate
getCertificate(String alias)
org.opensaml.xml.security.credential.Credential
getCredential(String keyName)
org.opensaml.xml.security.credential.Credential
getEncryptionCredential()
org.opensaml.xml.security.credential.Credential
getSigningCredential()
org.opensaml.xml.security.credential.Credential
getTlsCredential()
void
registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
Iterable<org.opensaml.xml.security.credential.Credential>
resolve(org.opensaml.xml.security.CriteriaSet criteria)
org.opensaml.xml.security.credential.Credential
resolveSingle(org.opensaml.xml.security.CriteriaSet criteria)
void
unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Method Detail
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
registerContribution
in classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
unregisterContribution
in classDefaultComponent
-
getCredential
public org.opensaml.xml.security.credential.Credential getCredential(String keyName)
- Specified by:
getCredential
in interfaceKeyManager
-
getAvailableCredentials
public Set<String> getAvailableCredentials()
- Specified by:
getAvailableCredentials
in interfaceKeyManager
-
getCertificate
public X509Certificate getCertificate(String alias)
- Specified by:
getCertificate
in interfaceKeyManager
-
getSigningCredential
public org.opensaml.xml.security.credential.Credential getSigningCredential()
- Specified by:
getSigningCredential
in interfaceKeyManager
-
getEncryptionCredential
public org.opensaml.xml.security.credential.Credential getEncryptionCredential()
- Specified by:
getEncryptionCredential
in interfaceKeyManager
-
getTlsCredential
public org.opensaml.xml.security.credential.Credential getTlsCredential()
- Specified by:
getTlsCredential
in interfaceKeyManager
-
resolve
public Iterable<org.opensaml.xml.security.credential.Credential> resolve(org.opensaml.xml.security.CriteriaSet criteria) throws org.opensaml.xml.security.SecurityException
- Specified by:
resolve
in interfaceorg.opensaml.xml.security.Resolver<org.opensaml.xml.security.credential.Credential,org.opensaml.xml.security.CriteriaSet>
- Throws:
org.opensaml.xml.security.SecurityException
-
resolveSingle
public org.opensaml.xml.security.credential.Credential resolveSingle(org.opensaml.xml.security.CriteriaSet criteria) throws org.opensaml.xml.security.SecurityException
- Specified by:
resolveSingle
in interfaceorg.opensaml.xml.security.Resolver<org.opensaml.xml.security.credential.Credential,org.opensaml.xml.security.CriteriaSet>
- Throws:
org.opensaml.xml.security.SecurityException
-
-