Skip to content

Commit ca1878b

Browse files
committed
Merge branch 'ProcrastinatorCp-ticket-keyStore'
2 parents a251f01 + 6912461 commit ca1878b

7 files changed

Lines changed: 687 additions & 324 deletions

File tree

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
package com.onelogin.saml2.model;
2+
3+
import java.security.KeyStore;
4+
5+
/**
6+
* KeyStore class of OneLogin's Java Toolkit.
7+
*
8+
* A class that stores KeyStore details for Certificates and Private Key
9+
*/
10+
public class KeyStoreSettings {
11+
/**
12+
* KeyStore which stores certificates and key
13+
*/
14+
private final KeyStore keyStore;
15+
16+
/**
17+
* Alias for SP key entry
18+
*/
19+
private final String spAlias;
20+
21+
/**
22+
* Password for KeyStore
23+
*/
24+
private final String storePass;
25+
26+
/**
27+
* Constructor
28+
*
29+
* @param keyStore
30+
* stores certificates and key
31+
*
32+
* @param spAlias
33+
* Alias for SP key entry
34+
*
35+
* @param storePass
36+
* password to access KeyStore
37+
*/
38+
public KeyStoreSettings(KeyStore keyStore, String spAlias, String storePass) {
39+
this.keyStore = keyStore;
40+
this.spAlias = spAlias;
41+
this.storePass = storePass;
42+
}
43+
44+
/**
45+
* @return the keyStore
46+
*/
47+
public final KeyStore getKeyStore() {
48+
return keyStore;
49+
}
50+
51+
/**
52+
* @return the spAlias
53+
*/
54+
public final String getSpAlias() {
55+
return spAlias;
56+
}
57+
58+
/**
59+
* @return the storePass
60+
*/
61+
public final String getStorePass() {
62+
return storePass;
63+
}
64+
65+
}

0 commit comments

Comments
 (0)