org.apache.wss4j.dom.message
Class WSSecSecurityContextToken

java.lang.Object
  extended by org.apache.wss4j.dom.message.WSSecSecurityContextToken

public class WSSecSecurityContextToken
extends Object

Builder class to add a wsc:SecurityContextToken into the wsse:Security


Constructor Summary
WSSecSecurityContextToken()
           
 
Method Summary
 String getIdentifier()
           
 SecurityContextToken getSct()
           
 String getSctId()
           
 byte[] getSecret()
           
 void prepare(Document doc, Crypto crypto)
           
 void prependSCTElementToHeader(Document doc, WSSecHeader secHeader)
           
 void setIdentifier(String identifier)
           
 void setSct(SecurityContextToken sct)
           
 void setSctId(String sctId)
           
protected  void setSecret(byte[] ephemeralKey)
           
 void setWscVersion(int wscVersion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSSecSecurityContextToken

public WSSecSecurityContextToken()
Method Detail

prepare

public void prepare(Document doc,
                    Crypto crypto)
             throws WSSecurityException
Throws:
WSSecurityException

prependSCTElementToHeader

public void prependSCTElementToHeader(Document doc,
                                      WSSecHeader secHeader)
                               throws WSSecurityException
Throws:
WSSecurityException

getSct

public SecurityContextToken getSct()
Returns:
Returns the sct.

setSct

public void setSct(SecurityContextToken sct)
Parameters:
sct - The sct to set.

getSecret

public byte[] getSecret()
Returns:
Returns the ephemeralKey.

setSecret

protected void setSecret(byte[] ephemeralKey)
Parameters:
ephemeralKey - The ephemeralKey to set.

getIdentifier

public String getIdentifier()
Returns:
Returns the identifier.

setIdentifier

public void setIdentifier(String identifier)
Parameters:
identifier - The identifier to set.

getSctId

public String getSctId()
Returns:
Returns the sctId.

setSctId

public void setSctId(String sctId)
Parameters:
sctId - The sctId to set.

setWscVersion

public void setWscVersion(int wscVersion)
Parameters:
wscVersion - The wscVersion to set.


Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.