Class X509InlineCredentialFactoryBean

All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean<BasicX509Credential>, InitializingBean

public class X509InlineCredentialFactoryBean extends AbstractX509CredentialFactoryBean
A factory bean to understand X509Inline credentials.
  • Field Details

    • log

      private final org.slf4j.Logger log
    • entityCertificate

      private String entityCertificate
      The entity certificate.
    • certificates

      private List<String> certificates
      The certificates.
    • privateKey

      private byte[] privateKey
      The private key.
    • crls

      private List<String> crls
      The crls.
  • Constructor Details

    • X509InlineCredentialFactoryBean

      public X509InlineCredentialFactoryBean()
  • Method Details

    • setEntity

      public void setEntity(@Nonnull String entityCert)
      Set the file with the entity certificate.
      entityCert - The file to set.
    • setCertificates

      public void setCertificates(@Nullable @NotEmpty List<String> certs)
      Sets the certificates.
      certs - The value to set.
    • setPrivateKey

      public void setPrivateKey(@Nullable byte[] key)
      Set the private key.
      key - The file to set.
    • setCRLs

      public void setCRLs(@Nullable @NotEmpty List<String> list)
      Sets the files which contain the crls.
      list - The value to set.
    • getEntityCertificate

      @Nullable protected X509Certificate getEntityCertificate()
      return the explicitly configured entity certificate..
      Specified by:
      getEntityCertificate in class AbstractX509CredentialFactoryBean
      the certificate, or none if not configured.
    • getCertificates

      @Nonnull protected List<X509Certificate> getCertificates()
      Get the configured certificates. This MUST include the entity certificate if it was configured.
      Specified by:
      getCertificates in class AbstractX509CredentialFactoryBean
      the certificates.
    • getPrivateKey

      @Nullable protected PrivateKey getPrivateKey()
      Get the configured private key.
      Specified by:
      getPrivateKey in class AbstractX509CredentialFactoryBean
      the key or null if non configured
    • getCRLs

      @Nullable protected List<X509CRL> getCRLs()
      Get the configured CRL list.
      Specified by:
      getCRLs in class AbstractX509CredentialFactoryBean
      the crls or null