Package org.apache.ws.security.message
Class WSSecSecurityContextToken
- java.lang.Object
-
- org.apache.ws.security.message.WSSecSecurityContextToken
-
public class WSSecSecurityContextToken extends java.lang.ObjectBuilder class to add awsc:SecurityContextTokeninto thewsse:Security- Author:
- Ruchith Fernando (ruchith.fernando@gmail.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]secretThe symmetric secret associated with the SecurityContextToken
-
Constructor Summary
Constructors Constructor Description WSSecSecurityContextToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIdentifier()SecurityContextTokengetSct()java.lang.StringgetSctId()byte[]getSecret()voidprepare(org.w3c.dom.Document doc, Crypto crypto)voidprependSCTElementToHeader(org.w3c.dom.Document doc, WSSecHeader secHeader)voidsetIdentifier(java.lang.String identifier)voidsetSct(SecurityContextToken sct)voidsetSctId(java.lang.String sctId)protected voidsetSecret(byte[] ephemeralKey)voidsetWscVersion(int wscVersion)
-
-
-
Method Detail
-
prepare
public void prepare(org.w3c.dom.Document doc, Crypto crypto) throws WSSecurityException, org.apache.ws.security.conversation.ConversationException- Throws:
WSSecurityExceptionorg.apache.ws.security.conversation.ConversationException
-
prependSCTElementToHeader
public void prependSCTElementToHeader(org.w3c.dom.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 java.lang.String getIdentifier()
- Returns:
- Returns the identifier.
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
- Parameters:
identifier- The identifier to set.
-
getSctId
public java.lang.String getSctId()
- Returns:
- Returns the sctId.
-
setSctId
public void setSctId(java.lang.String sctId)
- Parameters:
sctId- The sctId to set.
-
setWscVersion
public void setWscVersion(int wscVersion)
- Parameters:
wscVersion- The wscVersion to set.
-
-