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
      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.
      Parameters:
      entityCert - The file to set.
    • setCertificates

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

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

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

      @Nullable protected X509Certificate getEntityCertificate()
      return the explicitly configured entity certificate..
      Specified by:
      getEntityCertificate in class AbstractX509CredentialFactoryBean
      Returns:
      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
      Returns:
      the certificates.
    • getPrivateKey

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

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