Class BundleKeyStore

java.lang.Object
org.jenkinsci.plugins.saml.BundleKeyStore

public class BundleKeyStore extends Object
Pac4j requires to set a keystore for encryption operations, the plugin generate an automatic keystore or it is not possible uses a keystore bundle on the plugin. The generated key is valid for a day, when expires it is generated a new one on the same keystore. A new key store is created when you restart Jenkins or if is not possible to access to the created.
See Also:
  • Field Details

  • Constructor Details

    • BundleKeyStore

      public BundleKeyStore()
  • Method Details

    • init

      public void init()
      initialized the keystore, it tries to create a keystore in a file, if it fails load the settings of the demo keystore.
    • getKeystorePath

      public String getKeystorePath()
    • getKsPassword

      public String getKsPassword()
    • getKsPkPassword

      public String getKsPkPassword()
    • getKsPkAlias

      public String getKsPkAlias()
    • isUsingDemoKeyStore

      public boolean isUsingDemoKeyStore()
      Returns:
      true if the demo keystore is used.
    • isValid

      public boolean isValid()
      Returns:
      true is the key store is still valid.