public class WSSecBase extends Object
Modifier and Type | Field and Description |
---|---|
protected CallbackLookup |
callbackLookup |
protected boolean |
doDebug |
protected int |
keyIdentifierType |
protected List<WSEncryptionPart> |
parts |
protected String |
password |
protected String |
user |
Constructor and Description |
---|
WSSecBase() |
WSSecBase(WSSConfig config) |
Modifier and Type | Method and Description |
---|---|
int |
getKeyIdentifierType()
Gets the value of the
keyIdentifierType . |
WSSConfig |
getWsConfig() |
protected String |
setBodyID(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(List<WSEncryptionPart> parts)
Set which parts of the message to encrypt/sign.
|
void |
setUserInfo(String user,
String password)
Set the user and password info.
|
void |
setWsConfig(WSSConfig wsConfig) |
protected String |
setWsuId(Element bodyElement) |
protected String user
protected String password
protected int keyIdentifierType
protected List<WSEncryptionPart> parts
protected boolean doDebug
protected CallbackLookup callbackLookup
public WSSecBase()
public WSSecBase(WSSConfig config)
public void setCallbackLookup(CallbackLookup callbackLookup)
callbackLookup
- The CallbackLookup object to retrieve elementspublic void setParts(List<WSEncryptionPart> parts)
parts
- The list containing the WSEncryptionPart objectspublic void setKeyIdentifierType(int keyIdType)
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 String setBodyID(Document doc) throws 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 bodyException
public void setUserInfo(String user, 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
keystoreCopyright © 2018 JBoss by Red Hat. All rights reserved.