electric.soap.security.tokens
Class X509v3SecurityToken

java.lang.Object
  extended byelectric.soap.security.tokens.SecurityToken
      extended byelectric.soap.security.tokens.BinarySecurityToken
          extended byelectric.soap.security.tokens.X509v3SecurityToken
All Implemented Interfaces:
IWSSConstants

public class X509v3SecurityToken
extends BinarySecurityToken
implements IWSSConstants

X509v3SecurityToken ... Only wsse:Base64Encoding is currently supported.

Author:
webMethods

Field Summary
protected  java.security.cert.X509Certificate certificate
           
protected  java.lang.String encodingType
           
protected  java.lang.String valueType
           
 
Fields inherited from class electric.soap.security.tokens.SecurityToken
id
 
Fields inherited from interface electric.soap.security.IWSSConstants
PASSWORD_DIGEST, PASSWORD_TEXT, SECURITY, SECURITY_TOKEN_REFERENCE, URI_ATTRIBUTE, WSSE_NAMESPACE, WSSE_PREFIX, WSU_NAMESPACE, WSU_PREFIX, X509_ENCODING_TYPE
 
Constructor Summary
X509v3SecurityToken()
           
X509v3SecurityToken(java.security.cert.X509Certificate certificate)
           
 
Method Summary
 java.security.cert.X509Certificate getCertificate()
          Return the associated X509 certificate.
 Element getElement()
          Generate a WS-Security compliant XML element based on the contents of this token.
 void setCertificate(java.security.cert.X509Certificate cert)
          Set the token's associated X509 certificate.
 void setElement(Element token)
          Set the fields of the token based on the given XML element.
 
Methods inherited from class electric.soap.security.tokens.SecurityToken
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueType

protected java.lang.String valueType

encodingType

protected java.lang.String encodingType

certificate

protected java.security.cert.X509Certificate certificate
Constructor Detail

X509v3SecurityToken

public X509v3SecurityToken()

X509v3SecurityToken

public X509v3SecurityToken(java.security.cert.X509Certificate certificate)
Parameters:
certificate -
Method Detail

getElement

public Element getElement()
Description copied from class: SecurityToken
Generate a WS-Security compliant XML element based on the contents of this token.

Specified by:
getElement in class SecurityToken
Returns:
an XML representation of the token.

setElement

public void setElement(Element token)
Description copied from class: SecurityToken
Set the fields of the token based on the given XML element.

Specified by:
setElement in class SecurityToken
Parameters:
token -

getCertificate

public java.security.cert.X509Certificate getCertificate()
Return the associated X509 certificate.

Returns:
the certificate associated with this token.

setCertificate

public void setCertificate(java.security.cert.X509Certificate cert)
Set the token's associated X509 certificate.

Parameters:
cert -


copyright© 2001-2004 by webMethods All Rights Reserved.