|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.sandbox.security.conversation.ConversationManager
This class helps handlers to carry on conversation.
It performes functionalities 1) Adding derived Keys 2) Signing using derived keys 3) Encrypting using derive keys Actually the class is the collection of methods that are useful for carrying out conversation.
Field Summary | |
protected java.lang.String |
canonAlgo
|
Constructor Summary | |
ConversationManager()
|
Method Summary | |
void |
addDkToken(org.w3c.dom.Document doc,
DerivedKeyInfo info)
|
org.w3c.dom.Document |
build(org.w3c.dom.Document doc,
Reference ref,
byte[] sk,
java.util.Vector parts)
The method is coded such that it can be plugged into WSSignEnvelope. |
DerivedKeyInfo |
createDerivedKeyToken(org.w3c.dom.Document doc,
java.lang.String uuid,
DerivedKeyCallbackHandler dkcbHandler,
SecurityTokenReference stRef2Base,
int keyLen)
Adds Derived key tokens to the header of the SOAP message, given the following parameters. |
void |
performDK_ENCR(java.lang.String encUser,
java.lang.String actor,
boolean mu,
org.w3c.dom.Document doc,
SecurityTokenReference secRef,
DerivedKeyCallbackHandler dkcbHandler,
java.util.Vector parts,
java.lang.String symAlgo)
Manages derived key encryption. |
void |
performDK_Sign(org.w3c.dom.Document doc,
DerivedKeyCallbackHandler dkcbHandler,
java.lang.String uuid,
DerivedKeyInfo dkSigInfo,
java.util.Vector parts)
Manages derived key signature. |
void |
setGenerationInfo(int i)
|
protected java.lang.String |
setWsuId(org.w3c.dom.Element bodyElement)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String canonAlgo
Constructor Detail |
public ConversationManager()
Method Detail |
public DerivedKeyInfo createDerivedKeyToken(org.w3c.dom.Document doc, java.lang.String uuid, DerivedKeyCallbackHandler dkcbHandler, SecurityTokenReference stRef2Base, int keyLen) throws ConversationException
doc
- uuid
- dkcbHandler
- stRef2Base
- -SecurityTOkenReference to the token, from which the derived
key is derived from
ConversationException
public void addDkToken(org.w3c.dom.Document doc, DerivedKeyInfo info)
public void performDK_ENCR(java.lang.String encUser, java.lang.String actor, boolean mu, org.w3c.dom.Document doc, SecurityTokenReference secRef, DerivedKeyCallbackHandler dkcbHandler, java.util.Vector parts, java.lang.String symAlgo) throws ConversationException
encUser
- actor
- mu
- doc
- secRef
- - SecurityTokenReference pointing to the derived KeydkcbHandler
-
ConversationException
public void performDK_Sign(org.w3c.dom.Document doc, DerivedKeyCallbackHandler dkcbHandler, java.lang.String uuid, DerivedKeyInfo dkSigInfo, java.util.Vector parts) throws ConversationException
doc
- dkcbHandler
- uuid
- dkSigInfo
-
ConversationException
public org.w3c.dom.Document build(org.w3c.dom.Document doc, Reference ref, byte[] sk, java.util.Vector parts) throws WSSecurityException
doc
- ref
- sk
- parts
-
WSSecurityException
protected java.lang.String setWsuId(org.w3c.dom.Element bodyElement)
public void setGenerationInfo(int i)
i
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |