|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pingidentity.sts.clientapi.protocol.STSMessage
public class STSMessage
Represents SOAP message with RST to the STS server.
Constructor Summary | |
---|---|
STSMessage(java.lang.String wsaAction)
Creates STSMessage. |
|
STSMessage(java.lang.String wsaAction,
int wsseCreatedOffset,
int wsseLifetime)
Creates STSMessage. |
Method Summary | |
---|---|
void |
addSecurityToken(org.w3c.dom.Element token)
Adds a security token to the message. |
void |
createRstElement(RequestSecurityTokenData rstData,
org.w3c.dom.Element token)
Creates RST. |
void |
createRstElement(RequestSecurityTokenData rstData,
org.w3c.dom.Element token,
java.lang.String tokenType,
SecurityTokenReferenceFactory referenceFactory)
Creates RST. |
void |
sign(javax.security.auth.x500.X500PrivateCredential credential,
java.lang.String certTokenId)
Signs the message with given credential. |
org.w3c.dom.Document |
toDocument()
Returns DOM presentation of the message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public STSMessage(java.lang.String wsaAction) throws STSClientException
wsaAction
- the WSA action
STSClientException
- if underlying SOAPException occurspublic STSMessage(java.lang.String wsaAction, int wsseCreatedOffset, int wsseLifetime) throws STSClientException
wsaAction
- the WSA actionwsseCreatedOffset
- wsseLifetime
- security header lifetime @throws STSClientException if underlying SOAPException occurs
STSClientException
Method Detail |
---|
public void addSecurityToken(org.w3c.dom.Element token) throws STSClientException
token
- the token
STSClientException
- if underlying SOAPException occurspublic void sign(javax.security.auth.x500.X500PrivateCredential credential, java.lang.String certTokenId) throws STSClientException
credential
- the credential for creating the Signature.certTokenId
- if present use this id for referencing to an X509v3 token in the KeyInfo element.
STSClientException
- if something goes wrongpublic org.w3c.dom.Document toDocument() throws STSClientException
STSClientException
public void createRstElement(RequestSecurityTokenData rstData, org.w3c.dom.Element token, java.lang.String tokenType, SecurityTokenReferenceFactory referenceFactory) throws STSClientException
rstData
- the data for creating RSTtoken
- token for validationtokenType
- the token typereferenceFactory
- a reference factory
STSClientException
- if something goes wrongpublic void createRstElement(RequestSecurityTokenData rstData, org.w3c.dom.Element token) throws STSClientException
rstData
- the data for creating RSTtoken
- token for validation
STSClientException
- if something goes wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |