Class BasicResourceCredentialFactoryBean

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

public class BasicResourceCredentialFactoryBean extends AbstractBasicCredentialFactoryBean
Spring bean factory for producing a BasicCredential from Resources.
  • Field Details

    • log

      private final org.slf4j.Logger log
      log.
    • publicKeyInfo

      @Nullable private Resource publicKeyInfo
      Configured public key Info.
    • privateKeyInfo

      @Nullable private Resource privateKeyInfo
      Configured private key Info.
    • secretKeyInfo

      @Nullable private Resource secretKeyInfo
      Configured secret key Info.
  • Constructor Details

    • BasicResourceCredentialFactoryBean

      public BasicResourceCredentialFactoryBean()
  • Method Details

    • getPublicKeyInfo

      @Nullable public Resource getPublicKeyInfo()
      Get the information used to generate the public key.
      Returns:
      Returns the info.
    • setPublicKeyInfo

      public void setPublicKeyInfo(@Nullable Resource info)
      Set the information used to generate the public key.
      Parameters:
      info - The info to set.
    • getPrivateKeyInfo

      @Nullable public Resource getPrivateKeyInfo()
      Get the information used to generate the private key.
      Returns:
      Returns the info.
    • setPrivateKeyInfo

      public void setPrivateKeyInfo(@Nullable Resource info)
      Set the information used to generate the private key.
      Parameters:
      info - The info to set.
    • getSecretKeyInfo

      @Nullable public Resource getSecretKeyInfo()
      Get the information used to generate the secret key.
      Returns:
      Returns the info.
    • setSecretKeyInfo

      public void setSecretKeyInfo(@Nullable Resource info)
      Set the information used to generate the secret key.
      Parameters:
      info - The info to set.
    • getPublicKey

      @Nullable protected PublicKey getPublicKey()
      return the configured Public Key.
      Specified by:
      getPublicKey in class AbstractBasicCredentialFactoryBean
      Returns:
      the key, or none if not configured.
    • getPrivateKey

      @Nullable protected PrivateKey getPrivateKey()
      Get the configured Private key.
      Specified by:
      getPrivateKey in class AbstractBasicCredentialFactoryBean
      Returns:
      the key or null if non configured
    • getSecretKey

      @Nullable protected SecretKey getSecretKey()
      return the configured Secret Key.
      Specified by:
      getSecretKey in class AbstractBasicCredentialFactoryBean
      Returns:
      the key, or none if not configured.