Class WASAML2ClientKeystoreGenerator
- java.lang.Object
-
- org.pac4j.saml.metadata.keystore.BaseSAML2KeystoreGenerator
-
- org.apache.syncope.wa.starter.pac4j.saml.WASAML2ClientKeystoreGenerator
-
- All Implemented Interfaces:
org.pac4j.saml.metadata.keystore.SAML2KeystoreGenerator
public class WASAML2ClientKeystoreGenerator extends org.pac4j.saml.metadata.keystore.BaseSAML2KeystoreGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected static Logger
LOG
protected org.pac4j.saml.client.SAML2Client
saml2Client
protected WARestClient
waRestClient
-
Constructor Summary
Constructors Constructor Description WASAML2ClientKeystoreGenerator(WARestClient waRestClient, org.pac4j.saml.client.SAML2Client saml2Client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
retrieve()
boolean
shouldGenerate()
protected void
store(KeyStore ks, X509Certificate certificate, PrivateKey privateKey)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
waRestClient
protected final WARestClient waRestClient
-
saml2Client
protected final org.pac4j.saml.client.SAML2Client saml2Client
-
-
Constructor Detail
-
WASAML2ClientKeystoreGenerator
public WASAML2ClientKeystoreGenerator(WARestClient waRestClient, org.pac4j.saml.client.SAML2Client saml2Client)
-
-
Method Detail
-
shouldGenerate
public boolean shouldGenerate()
- Specified by:
shouldGenerate
in interfaceorg.pac4j.saml.metadata.keystore.SAML2KeystoreGenerator
- Overrides:
shouldGenerate
in classorg.pac4j.saml.metadata.keystore.BaseSAML2KeystoreGenerator
-
store
protected void store(KeyStore ks, X509Certificate certificate, PrivateKey privateKey) throws Exception
- Specified by:
store
in classorg.pac4j.saml.metadata.keystore.BaseSAML2KeystoreGenerator
- Throws:
Exception
-
retrieve
public InputStream retrieve() throws Exception
- Throws:
Exception
-
-