|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogic.xml.security.signature.Signature
public final class Signature
Field Summary |
---|
Constructor Summary | |
---|---|
Signature()
Creates a Signature object with the signature algorithm defaulted to SignatureAlgorithm.DSA_SHA1 . |
Method Summary | |
---|---|
void |
addReference(Reference reference)
Adds a reference to be signed. |
KeyInfo |
getKeyInfo()
|
Iterator |
getReferences()
Gets all of the references signed by this signature |
String |
getSignatureMethod()
|
KeyResult |
getValidatingKey()
|
static void |
main(String[] args)
|
void |
setCanonicalizationMethod(CanonicalizationMethod c14nMethod)
|
void |
setCanonicalizationMethod(String c14Method)
|
void |
setKeyInfo(KeyInfo keyInfo)
|
void |
setSignatureMethod(String algorithmURI)
|
void |
sign(Key key)
Generates the signature. |
void |
toXML(XMLOutputStream xos,
String ns,
int indent)
|
void |
validate(Key validatingKey)
Validates the signature and it's references. |
void |
validateReferences()
|
void |
validateSignature(KeyResolver resolver)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Signature()
SignatureAlgorithm.DSA_SHA1
.
Method Detail |
---|
public void setSignatureMethod(String algorithmURI) throws XMLSignatureException
XMLSignatureException
public String getSignatureMethod()
public void setCanonicalizationMethod(String c14Method) throws XMLSignatureException
XMLSignatureException
public void setCanonicalizationMethod(CanonicalizationMethod c14nMethod)
public void setKeyInfo(KeyInfo keyInfo)
public KeyInfo getKeyInfo() throws KeyInfoValidationException
KeyInfoValidationException
public void addReference(Reference reference)
public Iterator getReferences()
public void sign(Key key) throws XMLSignatureException
XMLSignatureException
public void validate(Key validatingKey) throws XMLSignatureException
XMLSignatureException
- If the core signature validation
passes but one or more references
failed validation.public void validateSignature(KeyResolver resolver) throws XMLSignatureException
XMLSignatureException
public void validateReferences() throws XMLSignatureException
XMLSignatureException
public KeyResult getValidatingKey()
public void toXML(XMLOutputStream xos, String ns, int indent) throws XMLStreamException
XMLStreamException
public static void main(String[] args) throws Exception
Exception
|
Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |