|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.security.handler.WSHandler
Extracted from WSDoAllReceiver and WSDoAllSender
Field Summary | |
protected static java.util.Hashtable |
cryptos
|
static java.lang.String |
DONE
|
protected static WSSecurityEngine |
secEngine
|
Constructor Summary | |
WSHandler()
|
Method Summary | |
protected boolean |
checkReceiverResults(java.util.Vector wsResult,
java.util.Vector actions)
|
protected void |
checkSignatureConfirmation(RequestData reqData,
java.util.Vector wsResult)
|
protected void |
decodeDecryptionParameter(RequestData reqData)
|
protected boolean |
decodeEnableSignatureConfirmation(RequestData reqData)
|
protected void |
decodeEncryptionParameter(RequestData reqData)
|
protected boolean |
decodeMustUnderstand(RequestData reqData)
|
protected void |
decodeSignatureParameter(RequestData reqData)
|
protected void |
decodeSignatureParameter2(RequestData reqData)
|
protected boolean |
decodeTimestampPrecision(RequestData reqData)
|
protected boolean |
decodeTimestampStrict(RequestData reqData)
|
int |
decodeTimeToLive(RequestData reqData)
|
protected void |
decodeUTParameter(RequestData reqData)
|
protected void |
doReceiverAction(int doAction,
RequestData reqData)
|
protected void |
doSenderAction(int doAction,
org.w3c.dom.Document doc,
RequestData reqData,
java.util.Vector actions,
boolean isRequest)
ut Performs all defined security actions to set-up the SOAP request. |
java.lang.ClassLoader |
getClassLoader()
Returns the classloader to be used for loading the callback class |
abstract java.lang.Object |
getOption(java.lang.String key)
|
abstract java.lang.String |
getPassword(java.lang.Object msgContext)
|
WSPasswordCallback |
getPassword(java.lang.String username,
int doAction,
java.lang.String clsProp,
java.lang.String refProp,
RequestData reqData)
Get a password to construct a UsernameToken or sign a message. |
protected javax.security.auth.callback.CallbackHandler |
getPasswordCB(RequestData reqData)
Get the password callback class and get an instance |
abstract java.lang.Object |
getProperty(java.lang.Object msgContext,
java.lang.String key)
|
java.lang.String |
getString(java.lang.String key,
java.lang.Object mc)
Looks up key first via getOption(String) and if not found
there, via getProperty(Object, String) |
java.lang.String |
getStringOption(java.lang.String key)
Returns the option on name . |
protected Crypto |
loadDecryptionCrypto(RequestData reqData)
Hook to allow subclasses to load their Decryption Crypto however they see fit. |
protected Crypto |
loadEncryptionCrypto(RequestData reqData)
Hook to allow subclasses to load their Encryption Crypto however they see fit. |
Crypto |
loadSignatureCrypto(RequestData reqData)
Hook to allow subclasses to load their Signature Crypto however they see fit. |
abstract void |
setPassword(java.lang.Object msgContext,
java.lang.String password)
|
abstract void |
setProperty(java.lang.Object msgContext,
java.lang.String key,
java.lang.Object value)
|
protected boolean |
verifyTimestamp(Timestamp timestamp,
int timeToLive)
Evaluate whether a timestamp is considered valid on receiverside. |
protected boolean |
verifyTrust(java.security.cert.X509Certificate cert,
RequestData reqData)
Evaluate whether a given certificate should be trusted. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String DONE
protected static final WSSecurityEngine secEngine
protected static java.util.Hashtable cryptos
Constructor Detail |
public WSHandler()
Method Detail |
protected void doSenderAction(int doAction, org.w3c.dom.Document doc, RequestData reqData, java.util.Vector actions, boolean isRequest) throws WSSecurityException
doAction
- a set defining the actions to dodoc
- the request as DOM documentreqData
- a data storage to pass values around bewteen methodsactions
- a vector holding the actions to do in the order defined
in the deployment file or property
WSSecurityException
protected void doReceiverAction(int doAction, RequestData reqData) throws WSSecurityException
WSSecurityException
protected boolean checkReceiverResults(java.util.Vector wsResult, java.util.Vector actions)
protected void checkSignatureConfirmation(RequestData reqData, java.util.Vector wsResult) throws WSSecurityException
WSSecurityException
public Crypto loadSignatureCrypto(RequestData reqData) throws WSSecurityException
WSSecurityException
protected Crypto loadEncryptionCrypto(RequestData reqData) throws WSSecurityException
WSSecurityException
protected void decodeUTParameter(RequestData reqData) throws WSSecurityException
WSSecurityException
protected void decodeSignatureParameter(RequestData reqData) throws WSSecurityException
WSSecurityException
protected void decodeEncryptionParameter(RequestData reqData) throws WSSecurityException
WSSecurityException
protected boolean decodeMustUnderstand(RequestData reqData) throws WSSecurityException
WSSecurityException
public int decodeTimeToLive(RequestData reqData)
protected boolean decodeEnableSignatureConfirmation(RequestData reqData) throws WSSecurityException
WSSecurityException
protected boolean decodeTimestampPrecision(RequestData reqData) throws WSSecurityException
WSSecurityException
protected boolean decodeTimestampStrict(RequestData reqData) throws WSSecurityException
WSSecurityException
public WSPasswordCallback getPassword(java.lang.String username, int doAction, java.lang.String clsProp, java.lang.String refProp, RequestData reqData) throws WSSecurityException
WSSecurityException
protected Crypto loadDecryptionCrypto(RequestData reqData) throws WSSecurityException
WSSecurityException
protected void decodeSignatureParameter2(RequestData reqData) throws WSSecurityException
WSSecurityException
protected void decodeDecryptionParameter(RequestData reqData) throws WSSecurityException
WSSecurityException
protected javax.security.auth.callback.CallbackHandler getPasswordCB(RequestData reqData) throws WSSecurityException
WSSecurityException
protected boolean verifyTrust(java.security.cert.X509Certificate cert, RequestData reqData) throws WSSecurityException
cert
- the certificate that should be validated against the keystore
WSSecurityException
protected boolean verifyTimestamp(Timestamp timestamp, int timeToLive) throws WSSecurityException
timestamp
- the timestamp that is validatedtimeToLive
- the limit on receiverside, the timestamp is validated against
WSSecurityException
public java.lang.String getString(java.lang.String key, java.lang.Object mc)
getOption(String)
and if not found
there, via getProperty(Object, String)
key
- the key to search for. May not be null.mc
- the message context to search.
java.lang.IllegalArgumentException
- if key
is null.public java.lang.String getStringOption(java.lang.String key)
name
.
key
- the non-null key of the option.
key
if key
exists and is of type java.lang.String; otherwise null.public java.lang.ClassLoader getClassLoader()
public abstract java.lang.Object getOption(java.lang.String key)
public abstract java.lang.Object getProperty(java.lang.Object msgContext, java.lang.String key)
public abstract void setProperty(java.lang.Object msgContext, java.lang.String key, java.lang.Object value)
public abstract java.lang.String getPassword(java.lang.Object msgContext)
public abstract void setPassword(java.lang.Object msgContext, java.lang.String password)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |