|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.util.crypto.DigitalSignature
public final class DigitalSignature
This class generates and validates digital signatures for XML data.
Constructor Summary | |
---|---|
DigitalSignature(InputInfo ii)
Constructor. |
Method Summary | |
---|---|
Item |
generateSignature(ANode node,
byte[] c,
byte[] d,
byte[] sig,
byte[] ns,
byte[] t,
byte[] expr,
ANode ce,
QueryContext ctx,
InputInfo ii)
Generates a signature. |
Item |
validateSignature(ANode node)
Validates a signature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DigitalSignature(InputInfo ii)
ii
- input infoMethod Detail |
---|
public Item generateSignature(ANode node, byte[] c, byte[] d, byte[] sig, byte[] ns, byte[] t, byte[] expr, ANode ce, QueryContext ctx, InputInfo ii) throws QueryException
node
- node to be signedc
- canonicalization algorithmd
- digest algorithmsig
- signature algorithmns
- signature element namespace prefixt
- signature type (enveloped, enveloping, detached)expr
- XPath expression which specifies node to be signedce
- certificate which contains keystore information for
signing the node, may be nullctx
- query contextii
- input info
QueryException
- query exceptionpublic Item validateSignature(ANode node) throws QueryException
node
- input node
QueryException
- query exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |