|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.security.message.WSSecBase
public class WSSecBase
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 CallbackLookup |
callbackLookup
|
protected boolean |
doDebug
|
protected int |
keyIdentifierType
|
protected java.util.List<WSEncryptionPart> |
parts
|
protected java.lang.String |
password
|
protected java.lang.String |
user
|
Constructor Summary | |
---|---|
WSSecBase()
|
|
WSSecBase(WSSConfig config)
|
Method Summary | |
---|---|
int |
getKeyIdentifierType()
Gets the value of the keyIdentifierType . |
WSSConfig |
getWsConfig()
|
protected java.lang.String |
setBodyID(org.w3c.dom.Document doc)
Looks up or adds a body id. |
void |
setCallbackLookup(CallbackLookup callbackLookup)
|
void |
setKeyIdentifierType(int keyIdType)
Sets which key identifier to use. |
void |
setParts(java.util.List<WSEncryptionPart> parts)
Set which parts of the message to encrypt/sign. |
void |
setUserInfo(java.lang.String user,
java.lang.String password)
Set the user and password info. |
void |
setWsConfig(WSSConfig wsConfig)
|
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 user
protected java.lang.String password
protected int keyIdentifierType
protected java.util.List<WSEncryptionPart> parts
protected boolean doDebug
protected CallbackLookup callbackLookup
Constructor Detail |
---|
public WSSecBase()
public WSSecBase(WSSConfig config)
Method Detail |
---|
public void setCallbackLookup(CallbackLookup callbackLookup)
callbackLookup
- The CallbackLookup object to retrieve elementspublic void setParts(java.util.List<WSEncryptionPart> parts)
parts
- The list containing the WSEncryptionPart objectspublic void setKeyIdentifierType(int keyIdType)
method
or
the method
function to
set up the key identification elements.
keyIdType
- WSConstants.ISSUER_SERIAL
,
WSConstants.BST_DIRECT_REFERENCE
,
WSConstants.X509_KEY_IDENTIFIER
,
WSConstants.SKI_KEY_IDENTIFIER
public int getKeyIdentifierType()
keyIdentifierType
.
keyIdentifyerType
.WSConstants.ISSUER_SERIAL
,
WSConstants.BST_DIRECT_REFERENCE
,
WSConstants.X509_KEY_IDENTIFIER
,
WSConstants.SKI_KEY_IDENTIFIER
public void setWsConfig(WSSConfig wsConfig)
wsConfig
- The wsConfig to set.public WSSConfig getWsConfig()
protected java.lang.String setBodyID(org.w3c.dom.Document doc) throws java.lang.Exception
wsu:Id
in the SOAP body element. If one is found, the
value of the wsu:Id
attribute is returned. Otherwise the
method generates a new wsu:Id
and an appropriate value.
doc
- The SOAP envelope as Document
wsu:Id
attribute of the SOAP body
java.lang.Exception
protected java.lang.String setWsuId(org.w3c.dom.Element bodyElement)
public void setUserInfo(java.lang.String user, java.lang.String password)
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
keystore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |