org.apache.ws.sandbox.security.conversation
Class ConversationSession

java.lang.Object
  extended byorg.apache.ws.sandbox.security.conversation.ConversationSession

public class ConversationSession
extends java.lang.Object

Version:
1.0
Author:
Ruchith

Constructor Summary
ConversationSession(SecurityContextInfo contextInfo)
          Creates a new conversation session for a gien security context
 
Method Summary
 void addDerivedKey(DerivedKeyInfo dkInfo)
          This adds a derived key into the session
 SecurityContextInfo getContextInfo()
          Returns the security context info of this session
 java.util.Hashtable getDerivedKeys()
          Returns the Hashtable of derived keys (DerivedKeyInfo obects) of this session
 long getKeyLength()
          Get the length of the derived keys to be generated when fixed length keys are generated
 java.lang.String getLabel()
          The label value to be used in the key derivation
 long getLastTouched()
          Returns the last time the session was used/modified
 Reference getRef2Base()
           
 boolean isAddBase2Message()
           
 void setAddBase2Message(boolean b)
           
 void setKeyLength(long keyLength)
          Set the length of the derived key to be derived in this session This is set in the case where fixed length keys are used
 void setLabel(java.lang.String label)
          Set the label value to be used in key derivation
 void setRef2Base(Reference reference)
           
 void touch()
          Touch the session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversationSession

public ConversationSession(SecurityContextInfo contextInfo)
Creates a new conversation session for a gien security context

Parameters:
contextInfo - The security context info
Method Detail

getContextInfo

public SecurityContextInfo getContextInfo()
Returns the security context info of this session

Returns:
the security context info of this session

getDerivedKeys

public java.util.Hashtable getDerivedKeys()
Returns the Hashtable of derived keys (DerivedKeyInfo obects) of this session

Returns:
A Hashtable of DerivedKeyInfo objects

addDerivedKey

public void addDerivedKey(DerivedKeyInfo dkInfo)
This adds a derived key into the session

Parameters:
dkInfo - The info object of the relevant derived key

getLabel

public java.lang.String getLabel()
The label value to be used in the key derivation

Returns:

setLabel

public void setLabel(java.lang.String label)
Set the label value to be used in key derivation

Parameters:
label -

getKeyLength

public long getKeyLength()
Get the length of the derived keys to be generated when fixed length keys are generated

Returns:

setKeyLength

public void setKeyLength(long keyLength)
Set the length of the derived key to be derived in this session This is set in the case where fixed length keys are used

Parameters:
keyLength -

touch

public void touch()
Touch the session


getLastTouched

public long getLastTouched()
Returns the last time the session was used/modified

Returns:
Last touched time in milliseconds

isAddBase2Message

public boolean isAddBase2Message()
Returns:

getRef2Base

public Reference getRef2Base()
Returns:

setAddBase2Message

public void setAddBase2Message(boolean b)
Parameters:
b -

setRef2Base

public void setRef2Base(Reference reference)
Parameters:
reference -


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