Package org.jenkinsci.plugins.saml
Class BundleKeyStore
java.lang.Object
org.jenkinsci.plugins.saml.BundleKeyStore
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PAC4J_DEMO_PASSWD
- See Also:
-
PAC4J_DEMO_KEYSTORE
- See Also:
-
PAC4J_DEMO_ALIAS
- See Also:
-
DEFAULT_KEY_ALIAS
- See Also:
-
KEY_ALG
- See Also:
-
SIGNATURE_ALGORITHM
- See Also:
-
PROVIDER
- See Also:
-
KEY_VALIDITY_PROPERTY
-
KEY_VALIDITY
-
SAML_JENKINS_KEYSTORE_XML
- See Also:
-
SAML_JENKINS_KEYSTORE_JKS
- See Also:
-
KEY_SIZE
public static final int KEY_SIZE- See Also:
-
CN_SAML_JENKINS
- See Also:
-
-
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
-
getKsPassword
-
getKsPkPassword
-
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.
-