org.apache.ws.sandbox.security.trust.issue
Class X509ToSCTIssuer

java.lang.Object
  extended byorg.apache.ws.sandbox.security.trust.issue.X509ToSCTIssuer
All Implemented Interfaces:
STIssuer

public abstract class X509ToSCTIssuer
extends java.lang.Object
implements STIssuer

Author:
Malinda Kaushalye Issue SCTs based on X509 certificates. Developers have to override the method getSecuritContextToken()
See Also:
org.apache.ws.sandbox.security.trust.STIssuer#issue(org.w3c.dom.Document, org.w3c.dom.Document)

Field Summary
protected  java.lang.String alias
           
 
Constructor Summary
X509ToSCTIssuer()
           
 
Method Summary
 java.lang.String getAlias()
           
 Crypto getCrypto()
           
 int getLifeTime()
           
abstract  org.w3c.dom.Element getSecuritContextToken(org.w3c.dom.Document doc, X509Security x509Sec)
          Override this method to generate the SCT.
 X509Security getX509()
           
 org.w3c.dom.Document issue(org.w3c.dom.Document req, org.w3c.dom.Document res)
           
 void setAlias(java.lang.String string)
           
 void setCrypto(Crypto crypto)
           
 void setLifeTime(int time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alias

protected java.lang.String alias
Constructor Detail

X509ToSCTIssuer

public X509ToSCTIssuer()
Method Detail

issue

public org.w3c.dom.Document issue(org.w3c.dom.Document req,
                                  org.w3c.dom.Document res)
                           throws java.lang.Exception
Specified by:
issue in interface STIssuer
Throws:
java.lang.Exception

getSecuritContextToken

public abstract org.w3c.dom.Element getSecuritContextToken(org.w3c.dom.Document doc,
                                                           X509Security x509Sec)
                                                    throws WSTrustException
Override this method to generate the SCT. Application developers can verify the requester according to their own mechanism (e.g. Searching a database) The whole request is handed over to the end user to make the process more flexible.

Throws:
WSTrustException

getLifeTime

public int getLifeTime()
Returns:
Duration in minutes

getX509

public X509Security getX509()
Returns:

setLifeTime

public void setLifeTime(int time)
Parameters:
time - Duration in minutes

getCrypto

public Crypto getCrypto()
Returns:

setCrypto

public void setCrypto(Crypto crypto)
Parameters:
crypto -

getAlias

public java.lang.String getAlias()
Returns:

setAlias

public void setAlias(java.lang.String string)
Parameters:
string -


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.