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