Author: sguilhen(a)redhat.com
Date: 2010-06-04 11:00:19 -0400 (Fri, 04 Jun 2010)
New Revision: 276
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/plugins/saml/SAML20TokenProvider.java
Log:
PLFED-78: Added logic to create a JPABasedRevocationRegistry with the specified JPA
configuratio name.
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/plugins/saml/SAML20TokenProvider.java
===================================================================
---
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/plugins/saml/SAML20TokenProvider.java 2010-06-04
13:46:11 UTC (rev 275)
+++
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/plugins/saml/SAML20TokenProvider.java 2010-06-04
15:00:19 UTC (rev 276)
@@ -78,6 +78,8 @@
private static final String REVOCATION_REGISTRY_FILE =
"RevocationRegistryFile";
+ private static final String REVOCATION_REGISTRY_JPA_CONFIG =
"RevocationRegistryJPAConfig";
+
private RevocationRegistry revocationRegistry;
private Map<String, String> properties;
@@ -113,7 +115,11 @@
// another option is to use the default JPA registry to store the revoked ids.
else if ("JPA".equalsIgnoreCase(registryOption))
{
- this.revocationRegistry = new JPABasedRevocationRegistry();
+ String configuration = this.properties.get(REVOCATION_REGISTRY_JPA_CONFIG);
+ if (configuration != null)
+ this.revocationRegistry = new JPABasedRevocationRegistry(configuration);
+ else
+ this.revocationRegistry = new JPABasedRevocationRegistry();
}
// the user has specified its own registry implementation class.
else
Show replies by date