|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.wss.security.handler.SecureSOAPMessage
This class SecureSOAPMessage
constructs the secured
SOAPMessage
for the given security mechanism token.
Constructor Summary | |
SecureSOAPMessage(javax.xml.soap.SOAPMessage soapMessage,
boolean create)
Constructor to create secure SOAP message. |
Method Summary | |
java.security.cert.X509Certificate |
getMessageCertificate()
Returns the X509Certificate that is used to secure
the SOAPMessage . |
SecurityMechanism |
getSecurityMechanism()
Returns the security mechanism of the secure soap message. |
SecurityToken |
getSecurityToken()
Returns the security token associated with this secure soap message. |
javax.xml.soap.SOAPMessage |
getSOAPMessage()
Returns the secured SOAP message. |
void |
setSecurityMechanism(SecurityMechanism securityMechanism)
Sets the security mechanism for securing the soap message. |
void |
setSecurityToken(SecurityToken token)
Sets the security token for securing the soap message. |
void |
sign(java.lang.String certAlias)
Signs the SOAPMessage for the given security profile. |
boolean |
verifySignature()
Verifies the signature of the SOAP message. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SecureSOAPMessage(javax.xml.soap.SOAPMessage soapMessage, boolean create) throws com.sun.identity.wss.security.SecurityException
soapMessage
- the SOAP message to be secured.create
- if true, creates a new secured SOAP message by adding
security headers.
if false, parses the secured SOAP message.
com.sun.identity.wss.security.SecurityException
- if failed in creating or parsing the
new secured SOAP message.Method Detail |
public javax.xml.soap.SOAPMessage getSOAPMessage()
public SecurityMechanism getSecurityMechanism()
SOAPMessage
.public void setSecurityMechanism(SecurityMechanism securityMechanism)
securityMechanism
- the security mechanism that will be used
to secure the soap message.public void setSecurityToken(SecurityToken token) throws com.sun.identity.wss.security.SecurityException
token
- the security token that is used to secure the soap message.
com.sun.identity.wss.security.SecurityException
- if the security token can not be added
to the security header.public SecurityToken getSecurityToken()
public void sign(java.lang.String certAlias) throws com.sun.identity.wss.security.SecurityException
SOAPMessage
for the given security profile.
certAlias
- the certificate alias
com.sun.identity.wss.security.SecurityException
- if there is any failure in signing.public boolean verifySignature() throws com.sun.identity.wss.security.SecurityException
com.sun.identity.wss.security.SecurityException
- if there is any failure in validation.public java.security.cert.X509Certificate getMessageCertificate()
X509Certificate
that is used to secure
the SOAPMessage
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |