IdpConfiguration.java
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.granite.auth.saml.configuration;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.cert.Certificate;
public class IdpConfiguration {
private String idpPostUrl;
private String idpLogoutPostUrl;
private String idpCertAlias;
public void setIdpCertAlias(String idpCertAlias) {
this.idpCertAlias = idpCertAlias;
}
public String getIdpCertAlias() {
return this.idpCertAlias;
}
public void setIdpPostUrl(String idpPostUrl) {
this.idpPostUrl = idpPostUrl;
}
public void setIdpLogoutPostUrl(String idpLogoutPostUrl) {
this.idpLogoutPostUrl = idpLogoutPostUrl;
}
public String getIdpPostUrl() {
return this.idpPostUrl;
}
public Certificate getCertificate(KeyStore trustStore) {
if (trustStore != null) {
try {
return trustStore.getCertificate(this.idpCertAlias);
}
catch (KeyStoreException e) {
throw new RuntimeException("Could not retrieve IdP certificate from TrustStore.", e);
}
}
throw new RuntimeException("Could not access TrustStore to receive IdP certificate.");
}
public String getIdpLogoutPostUrl() {
return this.idpLogoutPostUrl;
}
}