electric.soap.security
Class WSSContextOut

java.lang.Object
  extended byelectric.soap.security.WSSContextOut

public class WSSContextOut
extends java.lang.Object

electric.soap.ws.WSSContextOut

Author:
webMethods

Field Summary
protected  java.security.cert.Certificate defaultCertificate
           
protected  java.security.PrivateKey defaultKey
           
protected  java.util.Vector encryptions
           
protected  java.util.Vector securityTokens
           
protected  java.util.Vector signatures
           
 
Constructor Summary
WSSContextOut()
          Create a new outgoing wss context.
 
Method Summary
 void addEncryption(WSSEncryption encryption)
          Add configuration information that will be used to generate a WS-Security style XML-Encryption for each outgoing message.
 void addSecurityToken(SecurityToken token)
          Add a new security token to each outgoing soap message.
 void addSignature(WSSSignature signature)
          Add configuration information that will be used to generate a WS-Security style XML-Signature for each outgoing message.
 java.util.Vector getEncryptions()
           
 java.util.Vector getSecurityTokens()
          Return a list of security tokens to be associated with each outgoing message.
 java.util.Vector getSignatures()
           
protected  void initDefaultKey()
          Use the Java SSL system properties javax.net.ssl.trustStore and javax.net.ssl.keyStorePassword to initialize the default keystore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

securityTokens

protected java.util.Vector securityTokens

signatures

protected java.util.Vector signatures

encryptions

protected java.util.Vector encryptions

defaultCertificate

protected java.security.cert.Certificate defaultCertificate

defaultKey

protected java.security.PrivateKey defaultKey
Constructor Detail

WSSContextOut

public WSSContextOut()
Create a new outgoing wss context. Sets up the default keystore based on the standard Java SSL system properties.

Method Detail

initDefaultKey

protected void initDefaultKey()
Use the Java SSL system properties javax.net.ssl.trustStore and javax.net.ssl.keyStorePassword to initialize the default keystore. The first certificate and first private key in the keystore will be used. [ ref SSL behavior? ]


addSecurityToken

public void addSecurityToken(SecurityToken token)
Add a new security token to each outgoing soap message.

Parameters:
token -

getSecurityTokens

public java.util.Vector getSecurityTokens()
Return a list of security tokens to be associated with each outgoing message.

Returns:
list of associated security tokens.

addSignature

public void addSignature(WSSSignature signature)
Add configuration information that will be used to generate a WS-Security style XML-Signature for each outgoing message.

Parameters:
signature -

getSignatures

public java.util.Vector getSignatures()
Returns:
list of signature specs.
See Also:
addSignature(electric.soap.security.signature.WSSSignature)

addEncryption

public void addEncryption(WSSEncryption encryption)
Add configuration information that will be used to generate a WS-Security style XML-Encryption for each outgoing message.

Parameters:
encryption -

getEncryptions

public java.util.Vector getEncryptions()
Returns:
list of encryption specifications.
See Also:
addSignature(electric.soap.security.signature.WSSSignature)


copyright© 2001-2004 by webMethods All Rights Reserved.