Package org.apache.ws.security.message
Class WSSecSecurityContextToken
java.lang.Object
org.apache.ws.security.message.WSSecSecurityContextToken
Builder class to add a
wsc:SecurityContextToken
into the
wsse:Security
- Author:
- Ruchith Fernando (ruchith.fernando@gmail.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]
The symmetric secret associated with the SecurityContextToken -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSct()
getSctId()
byte[]
void
void
prependSCTElementToHeader
(Document doc, WSSecHeader secHeader) void
setIdentifier
(String identifier) void
void
protected void
setSecret
(byte[] ephemeralKey) void
setWscVersion
(int wscVersion)
-
Field Details
-
secret
protected byte[] secretThe symmetric secret associated with the SecurityContextToken
-
-
Constructor Details
-
WSSecSecurityContextToken
public WSSecSecurityContextToken()
-
-
Method Details
-
prepare
public void prepare(Document doc, Crypto crypto) throws WSSecurityException, org.apache.ws.security.conversation.ConversationException - Throws:
WSSecurityException
org.apache.ws.security.conversation.ConversationException
-
prependSCTElementToHeader
public void prependSCTElementToHeader(Document doc, WSSecHeader secHeader) throws WSSecurityException - Throws:
WSSecurityException
-
getSct
- Returns:
- Returns the sct.
-
setSct
- 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
- Returns:
- Returns the identifier.
-
setIdentifier
- Parameters:
identifier
- The identifier to set.
-
getSctId
- Returns:
- Returns the sctId.
-
setSctId
- Parameters:
sctId
- The sctId to set.
-
setWscVersion
public void setWscVersion(int wscVersion) - Parameters:
wscVersion
- The wscVersion to set.
-