Class KeyStoreReferenceConverter
java.lang.Object
se.swedenconnect.security.credential.spring.converters.KeyStoreReferenceConverter
- All Implemented Interfaces:
Aware
,ApplicationContextAware
,Converter<String,
KeyStoreReference>
public class KeyStoreReferenceConverter
extends Object
implements Converter<String,KeyStoreReference>, ApplicationContextAware
A
Converter
that accepts a string that is a reference to a registered KeyStore
and uses the system
CredentialBundles
bean to create a resolvable KeyStoreReference
.- Author:
- Martin Lindström
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConverts a registered key store ID into a supplier to aKeyStore
object.void
setApplicationContext
(ApplicationContext applicationContext)
-
Constructor Details
-
KeyStoreReferenceConverter
public KeyStoreReferenceConverter()
-
-
Method Details
-
convert
Converts a registered key store ID into a supplier to aKeyStore
object.- Specified by:
convert
in interfaceConverter<String,
KeyStoreReference>
-
setApplicationContext
public void setApplicationContext(@Nonnull ApplicationContext applicationContext) throws BeansException - Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-