public class Signature extends Object implements SecurityHeaderElement, NamespaceContextInfo, SecurityElementWriter, PolicyBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
KEYINFO |
static int |
KEYINFO_EVENT |
static String |
OBJECT |
static int |
OBJECT_EVENT |
static String |
SIGNATURE_VALUE |
static int |
SIGNATUREVALUE_EVENT |
static String |
SIGNED_INFO |
static int |
SIGNEDINFO_EVENT |
| Constructor and Description |
|---|
Signature(JAXBFilterProcessingContext jpc,
Map<String,String> namespaceList,
com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator sbc)
Creates a new instance of SignatureProcessor
|
Signature(JAXBFilterProcessingContext jpc,
Map<String,String> namespaceList,
com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator sbc,
boolean cacheSig) |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
HashMap<String,String> |
getInscopeNSContext()
map of all inscope namespace declarations.
|
String |
getLocalPart()
Gets the local name of this header element.
|
String |
getNamespaceURI() |
WSSPolicy |
getPolicy()
returns the
WSSPolicy that was created for the SecurityHeaderElement |
ArrayList<Reference> |
getReferences() |
boolean |
isReady() |
boolean |
isValidated() |
void |
process(XMLStreamReader signature) |
void |
process(XMLStreamReader signature,
boolean storeSigConfirmValue) |
XMLStreamReader |
readHeader()
Reads the header as a
XMLStreamReader. |
boolean |
refersToSecHdrWithId(String id) |
Reference |
removeReferenceWithID(String id) |
void |
setId(String id) |
boolean |
validate() |
boolean |
verifyReferences() |
boolean |
verifySignatureValue() |
XMLStreamReader |
wrapWithDigester(Reference ref,
XMLStreamReader message,
String bodyPrologue,
String bodyEpilogue,
com.sun.xml.ws.encoding.TagInfoset bodyTag,
HashMap<String,String> parentNS,
boolean payLoad) |
void |
writeTo(OutputStream os) |
void |
writeTo(XMLStreamWriter streamWriter)
Writes out the header.
|
void |
writeTo(XMLStreamWriter streamWriter,
HashMap props) |
public static final int SIGNEDINFO_EVENT
public static final int SIGNATUREVALUE_EVENT
public static final int KEYINFO_EVENT
public static final int OBJECT_EVENT
public static final String SIGNED_INFO
public static final String SIGNATURE_VALUE
public static final String KEYINFO
public static final String OBJECT
public Signature(JAXBFilterProcessingContext jpc, Map<String,String> namespaceList, com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator sbc)
public Signature(JAXBFilterProcessingContext jpc, Map<String,String> namespaceList, com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator sbc, boolean cacheSig)
public void process(XMLStreamReader signature) throws XWSSecurityException
XWSSecurityExceptionpublic void process(XMLStreamReader signature, boolean storeSigConfirmValue) throws XWSSecurityException
XWSSecurityExceptionpublic boolean validate()
throws XWSSecurityException
XWSSecurityExceptionpublic boolean isValidated()
public boolean isReady()
throws XWSSecurityException
XWSSecurityExceptionpublic boolean verifyReferences()
public boolean verifySignatureValue()
public boolean refersToSecHdrWithId(String id)
refersToSecHdrWithId in interface SecurityHeaderElementpublic String getId()
getId in interface SecurityElementpublic void setId(String id)
setId in interface SecurityElementpublic String getNamespaceURI()
getNamespaceURI in interface SecurityElementpublic String getLocalPart()
SecurityElementgetLocalPart in interface SecurityElementpublic XMLStreamReader readHeader() throws XMLStreamException
SecurityElementXMLStreamReader.
The returned parser points at the start element of this header.
(IOW, XMLStreamReader.getEventType() would return
XMLStreamConstants.START_ELEMENT.
For some Header implementations, this operation is a non-trivial operation. Therefore, use of this method is discouraged unless the caller is interested in reading the whole header.
Similarly, if the caller wants to use this method only to do
the API conversion (such as simply firing SAX events from
XMLStreamReader), then the JAX-WS team requests
that you talk to us.
Messages that come from tranport usually provides a reasonably efficient implementation of this method.
readHeader in interface SecurityElementXMLStreamExceptionpublic void writeTo(OutputStream os)
writeTo in interface SecurityElementWriterpublic void writeTo(XMLStreamWriter streamWriter) throws XMLStreamException
SecurityElementWriterwriteTo in interface SecurityElementWriterXMLStreamException - if the operation fails for some reason. This leaves the
writer to an undefined state.public XMLStreamReader wrapWithDigester(Reference ref, XMLStreamReader message, String bodyPrologue, String bodyEpilogue, com.sun.xml.ws.encoding.TagInfoset bodyTag, HashMap<String,String> parentNS, boolean payLoad) throws XWSSecurityException
XWSSecurityExceptionpublic void writeTo(XMLStreamWriter streamWriter, HashMap props) throws XMLStreamException
writeTo in interface SecurityElementWriterXMLStreamExceptionpublic HashMap<String,String> getInscopeNSContext()
NamespaceContextInfogetInscopeNSContext in interface NamespaceContextInfoHashMap of all inscope namespaces.public WSSPolicy getPolicy()
PolicyBuilderWSSPolicy that was created for the SecurityHeaderElementgetPolicy in interface PolicyBuilderWSSPolicyCopyright © 2005–2018 Oracle Corporation. All rights reserved.