public class X509CertificateAdapter extends Object implements ConfigTypeAdapter<X509Certificate,String>
Modifier and Type | Field and Description |
---|---|
private CertificateFactory |
certificateFactory |
Constructor and Description |
---|
X509CertificateAdapter() |
Modifier and Type | Method and Description |
---|---|
X509Certificate |
fromConfigNode(String configNode,
ConfigProperty property,
LoadingContext ctx,
Object parent)
Converts serialized configuration representation to the type provided by this adaptor.
|
Map<String,Object> |
getSchema(ConfigProperty property,
ProcessingContext ctx)
Returns a metadata node in json-schema format (http://json-schema.org/)
Additional proprietary optional schema parameters:
essentialType - e.g., "base64" for type string class - simple name of the ConfigurableClass if this is a corresponding object mapkey - container that denotes schema for the key (type will always be string, but there could be essentialType, etc) |
private CertificateFactory |
getX509Factory() |
String |
normalize(Object configNode,
ConfigProperty property,
ProcessingContext ctx)
Converts allowed representations (e.g., "123" for Integer) to proper serialized representation
|
String |
toConfigNode(X509Certificate object,
ConfigProperty property,
SavingContext ctx)
Creates a serialized configuration representation for a provided object.
|
private CertificateFactory certificateFactory
public X509CertificateAdapter()
public X509Certificate fromConfigNode(String configNode, ConfigProperty property, LoadingContext ctx, Object parent) throws ConfigurationException
ConfigTypeAdapter
fromConfigNode
in interface ConfigTypeAdapter<X509Certificate,String>
property
- the property which is going to be assigned the returned value (Can be null)ConfigurationException
private CertificateFactory getX509Factory() throws CertificateException
CertificateException
public String toConfigNode(X509Certificate object, ConfigProperty property, SavingContext ctx) throws ConfigurationException
ConfigTypeAdapter
Creates a serialized configuration representation for a provided object. Throws ConfigurationUnserializableException when the object allows configuration with setters in which case it is impossible to trace the parameters used in the setters back.
toConfigNode
in interface ConfigTypeAdapter<X509Certificate,String>
ctx
- @returnConfigurationException
public Map<String,Object> getSchema(ConfigProperty property, ProcessingContext ctx) throws ConfigurationException
ConfigTypeAdapter
getSchema
in interface ConfigTypeAdapter<X509Certificate,String>
ConfigurationException
public String normalize(Object configNode, ConfigProperty property, ProcessingContext ctx) throws ConfigurationException
ConfigTypeAdapter
normalize
in interface ConfigTypeAdapter<X509Certificate,String>
ConfigurationException
Copyright © 2017 dcm4che.org. All rights reserved.