|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.ws.security.message.WSBaseMessage
This is the base class for WS Security messages. It provides common functions and fields used by the specific message classes such as sign, encrypt, and username token.
| Field Summary | |
protected java.lang.String |
actor
|
protected boolean |
doDebug
|
protected int |
keyIdentifierType
|
protected boolean |
mustunderstand
|
protected java.util.Vector |
parts
|
protected java.lang.String |
password
|
protected int |
timeToLive
|
protected java.lang.String |
user
|
protected WSSConfig |
wssConfig
|
| Constructor Summary | |
WSBaseMessage()
Deprecated. replaced by WSSecBase.WSSecBase() |
|
WSBaseMessage(java.lang.String actor)
Deprecated. replaced by WSSecBase.WSSecBase() and
WSSecHeader for actor specification. |
|
WSBaseMessage(java.lang.String actor,
boolean mu)
Deprecated. replaced by WSSecBase.WSSecBase() and
WSSecHeader for actor and mustunderstand
specification. |
|
| Method Summary | |
int |
getKeyIdentifierType()
Deprecated. replaced by WSSecBase.getKeyIdentifierType() |
protected org.w3c.dom.Element |
insertSecurityHeader(org.w3c.dom.Document doc)
Deprecated. replaced by WSSecHeader.insertSecurityHeader(Document) |
void |
setActor(java.lang.String act)
Deprecated. replaced by WSSecHeader.setActor(String) |
protected java.lang.String |
setBodyID(org.w3c.dom.Document doc)
Deprecated. replaced by WSSecBase.setBodyID(Document) |
void |
setKeyIdentifierType(int keyIdType)
Deprecated. replaced by WSSecBase.setKeyIdentifierType(int) |
void |
setMustUnderstand(boolean mu)
Deprecated. replaced by WSSecHeader.setMustUnderstand(boolean) |
void |
setParts(java.util.Vector parts)
Deprecated. replaced by WSSecBase.setParts(Vector) |
void |
setTimeToLive(int ttl)
Deprecated. replaced by WSSecTimestamp.setTimeToLive(int) |
void |
setUserInfo(java.lang.String user,
java.lang.String password)
Deprecated. replaced by WSSecBase.setUserInfo(String, String) |
void |
setWsConfig(WSSConfig wsConfig)
Deprecated. replaced by WSSecBase.setWsConfig(WSSConfig) |
protected java.lang.String |
setWsuId(org.w3c.dom.Element bodyElement)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String actor
protected boolean mustunderstand
protected java.lang.String user
protected java.lang.String password
protected int keyIdentifierType
protected java.util.Vector parts
protected int timeToLive
protected boolean doDebug
protected WSSConfig wssConfig
| Constructor Detail |
public WSBaseMessage()
WSSecBase.WSSecBase()
public WSBaseMessage(java.lang.String actor)
WSSecBase.WSSecBase() and
WSSecHeader for actor specification.
actor - The actor name of the wsse:Security header
public WSBaseMessage(java.lang.String actor,
boolean mu)
WSSecBase.WSSecBase() and
WSSecHeader for actor and mustunderstand
specification.
actor - The actor name of the wsse:Security headermu - Set mustUnderstand to true or false| Method Detail |
public void setActor(java.lang.String act)
WSSecHeader.setActor(String)
act - The actor name of the wsse:Security headerpublic void setTimeToLive(int ttl)
WSSecTimestamp.setTimeToLive(int)
Created and the Expires in
Timestamp.
ttl - The time to live in secondpublic void setParts(java.util.Vector parts)
WSSecBase.setParts(Vector)
parts - The vector containing the WSEncryptionPart objectspublic void setMustUnderstand(boolean mu)
WSSecHeader.setMustUnderstand(boolean)
mustUnderstand flag for the
wsse:Security header
mu - Set mustUnderstand to true or falsepublic void setKeyIdentifierType(int keyIdType)
WSSecBase.setKeyIdentifierType(int)
signature or
the ecnryption function to
set up the key identification elements.
keyIdType - WSConstants.ISSUER_SERIAL,
WSConstants.BST_DIRECT_REFERENCE,
WSConstants.X509_KEY_IDENTIFIER,
WSConstants.SKI_KEY_IDENTIFIERpublic int getKeyIdentifierType()
WSSecBase.getKeyIdentifierType()
keyIdentifyerType.
keyIdentifyerType.WSConstants.ISSUER_SERIAL,
WSConstants.BST_DIRECT_REFERENCE,
WSConstants.X509_KEY_IDENTIFIER,
WSConstants.SKI_KEY_IDENTIFIERpublic void setWsConfig(WSSConfig wsConfig)
WSSecBase.setWsConfig(WSSConfig)
wsConfig - The wsConfig to set.
protected java.lang.String setBodyID(org.w3c.dom.Document doc)
throws java.lang.Exception
WSSecBase.setBodyID(Document)
wsu:Id in the SOAP body element. If one is found, the
value of the wsu:Id attribute is returned. Otherwise the
methode generates a new wsu:Id and an appropriate value.
doc - The SOAP envelope as Document
wsu:Id attribute of the SOAP body
java.lang.Exceptionprotected java.lang.String setWsuId(org.w3c.dom.Element bodyElement)
public void setUserInfo(java.lang.String user,
java.lang.String password)
WSSecBase.setUserInfo(String, String)
user - This is the user's alias name in the keystore that identifies
the private key to sign the documentpassword - The user's password to get the private signing key from the
keystoreprotected org.w3c.dom.Element insertSecurityHeader(org.w3c.dom.Document doc)
WSSecHeader.insertSecurityHeader(Document)
doc - A SOAP envelope as Document
wsse:Security element
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||