Author: sguilhen(a)redhat.com
Date: 2009-04-28 10:53:13 -0400 (Tue, 28 Apr 2009)
New Revision: 463
Modified:
identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/jboss/trust/JBossSTSConfiguration.java
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/STSConfiguration.java
Log:
JBID-78: Added methods to allow access to the signing key and to the public keys of the
service providers.
Modified:
identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/jboss/trust/JBossSTSConfiguration.java
===================================================================
---
identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/jboss/trust/JBossSTSConfiguration.java 2009-04-27
09:32:40 UTC (rev 462)
+++
identity-federation/trunk/jboss-identity-bindings/src/main/java/org/jboss/identity/federation/bindings/jboss/trust/JBossSTSConfiguration.java 2009-04-28
14:53:13 UTC (rev 463)
@@ -28,6 +28,7 @@
import org.jboss.identity.federation.api.wstrust.STSConfiguration;
import org.jboss.identity.federation.api.wstrust.SecurityTokenProvider;
+import org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler;
import org.jboss.identity.federation.api.wstrust.WSTrustServiceFactory;
import org.jboss.identity.federation.bindings.config.KeyProviderType;
import org.jboss.identity.federation.bindings.config.STSType;
@@ -58,6 +59,8 @@
private TrustKeyManager trustManager;
+ private WSTrustRequestHandler handler;
+
/**
* <p>
* Creates an instance of {@code JBossSTSConfiguration} with default configuration
values.
@@ -150,7 +153,8 @@
*/
public long getIssuedTokenTimeout()
{
- return this.delegate.getTokenTimeout();
+ // return the timeout value in milliseconds.
+ return this.delegate.getTokenTimeout() * 1000;
}
/*
@@ -158,9 +162,12 @@
*
* @see
org.jboss.identity.federation.api.wstrust.STSConfiguration#getRequestHandlerClass()
*/
- public String getRequestHandlerClass()
+ public WSTrustRequestHandler getRequestHandler()
{
- return this.delegate.getRequestHandler();
+ if (this.handler == null)
+ this.handler = WSTrustServiceFactory.getInstance().createRequestHandler(
+ this.delegate.getRequestHandler(), this);
+ return this.handler;
}
/*
Modified:
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/STSConfiguration.java
===================================================================
---
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/STSConfiguration.java 2009-04-27
09:32:40 UTC (rev 462)
+++
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/STSConfiguration.java 2009-04-28
14:53:13 UTC (rev 463)
@@ -64,12 +64,12 @@
/**
* <p>
- * Obtains the fully-qualified name of the request handler class.
+ * Obtains the WS-Trust request handler class.
* </p>
*
- * @return a {@code String} representing the request handler FQN.
+ * @return a reference to the configured {@code WSTrustRequestHandler}.
*/
- public String getRequestHandlerClass();
+ public WSTrustRequestHandler getRequestHandler();
/**
* <p>
Show replies by date