|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface provides security operations with required information, such as a verification key. This interface is implemented by applications. The methods in this interface are called by the toolkit.
| Method Summary | |
void |
needHMACPassword(XMLSignature sig)
This method is called when the toolkit needs the password for verifying HMAC signatures. |
void |
needPublicKeys(XMLSignature sig)
This method is called when the toolkit needs a public key in order to verify a signature. |
void |
needSecretKey(XMLEncryption enc)
This method is called when the toolkit needs the secret key in order to decrypt data. |
void |
needTransportKey(XMLEncryption enc)
This method is called when the toolkit needs the transport key in order to decrypt data. |
void |
needWrappingKey(XMLEncryption enc)
This method is called when the toolkit needs the wrapping keys in order to decrypt data. |
void |
operationBegin(XMLSecurityOperation op)
This method is invoked by the toolkit before it starts processing a security operation. |
void |
operationEnd(XMLSecurityOperation op)
This method is invoked by the toolkit after the processing of each security operation. |
| Method Detail |
public void needPublicKeys(XMLSignature sig)
sig.setCertificates() or sig.setPublicKeys()
to inform the signature operation about the known set of certificates
and public keys to try. (First, certificates are tried, then public
keys.) The application can find more details of the signature operation
by inspecting the SecurityParameters from sig.
sig - The signature operation that needs a key for verification.public void needTransportKey(XMLEncryption enc)
enc.setTransportKey() to set the transport key to use. The
application can find more details of the encryption operation by
inspecting the SecurityParameters from enc.
enc - The encryption operation that is missing the transport key.public void needSecretKey(XMLEncryption enc)
enc.setSecretKey(). The
application can find more details of the encryption operation by
inspecting the SecurityParameters from enc.
enc - The encryption operation that is missing the secret key.public void needWrappingKey(XMLEncryption enc)
enc.setWrappingKey() to set the wrapping key to use. The
application can find more details of the encryption operation by
inspecting the SecurityParameters from enc.
enc - The encryption operation that is missing the wrapping key.public void needHMACPassword(XMLSignature sig)
sig.setHMACPassword() to set the HMAC password to use. The
application can find more details of the signature operation by
inspecting the SecurityParameters from sig.
sig - The signature operation that is missing the HMAC password.public void operationBegin(XMLSecurityOperation op)
skip() method for the specified
XMLSecurityOperation to indicate that the toolkit must not
process this operation.
op - The security operation being processed.
public void operationEnd(XMLSecurityOperation op)
throws SWSJException
StatusInfo for the specified
XMLSecurityOperation and then do one of the following:
OPERATION_SUCCESS or throw an exception if not.
op.skip() - any results from the operation are ignored
op - The security operation being processed.
SWSJException - If the application is designed to throw an
exception here.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||