Package org.jenkinsci.plugins.saml
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:
- pac4j - Authentication mechanisms: SAML
-
-
Field Summary
Fields Modifier and Type Field Description static String
CN_SAML_JENKINS
static String
DEFAULT_KEY_ALIAS
static String
KEY_ALG
static int
KEY_SIZE
static Long
KEY_VALIDITY
static String
KEY_VALIDITY_PROPERTY
static String
PAC4J_DEMO_ALIAS
static String
PAC4J_DEMO_KEYSTORE
static String
PAC4J_DEMO_PASSWD
static String
PROVIDER
static String
SAML_JENKINS_KEYSTORE_JKS
static String
SAML_JENKINS_KEYSTORE_XML
static String
SIGNATURE_ALGORITHM
-
Constructor Summary
Constructors Constructor Description BundleKeyStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKeystorePath()
String
getKsPassword()
String
getKsPkAlias()
String
getKsPkPassword()
void
init()
initialized the keystore, it tries to create a keystore in a file, if it fails load the settings of the demo keystore.boolean
isUsingDemoKeyStore()
boolean
isValid()
-
-
-
Field Detail
-
PAC4J_DEMO_PASSWD
public static final String PAC4J_DEMO_PASSWD
- See Also:
- Constant Field Values
-
PAC4J_DEMO_KEYSTORE
public static final String PAC4J_DEMO_KEYSTORE
- See Also:
- Constant Field Values
-
PAC4J_DEMO_ALIAS
public static final String PAC4J_DEMO_ALIAS
- See Also:
- Constant Field Values
-
DEFAULT_KEY_ALIAS
public static final String DEFAULT_KEY_ALIAS
- See Also:
- Constant Field Values
-
KEY_ALG
public static final String KEY_ALG
- See Also:
- Constant Field Values
-
SIGNATURE_ALGORITHM
public static final String SIGNATURE_ALGORITHM
- See Also:
- Constant Field Values
-
PROVIDER
public static final String PROVIDER
- See Also:
- Constant Field Values
-
KEY_VALIDITY_PROPERTY
public static final String KEY_VALIDITY_PROPERTY
-
KEY_VALIDITY
public static final Long KEY_VALIDITY
-
SAML_JENKINS_KEYSTORE_XML
public static final String SAML_JENKINS_KEYSTORE_XML
- See Also:
- Constant Field Values
-
SAML_JENKINS_KEYSTORE_JKS
public static final String SAML_JENKINS_KEYSTORE_JKS
- See Also:
- Constant Field Values
-
KEY_SIZE
public static final int KEY_SIZE
- See Also:
- Constant Field Values
-
CN_SAML_JENKINS
public static final String CN_SAML_JENKINS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-