|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.security.opt.impl.enc.JAXBEncryptedKey
public class JAXBEncryptedKey
| Constructor Summary | |
|---|---|
JAXBEncryptedKey(EncryptedKeyType ekt,
java.security.Key kk,
java.security.Key dk,
com.sun.xml.ws.api.SOAPVersion soapVersion)
Creates a new instance of JAXBEncryptedKey |
|
| Method Summary | ||
|---|---|---|
byte[] |
canonicalize(java.lang.String algorithm,
java.util.List<AttributeNS> namespaceDecls)
|
|
void |
decrypt()
|
|
void |
encrypt()
|
|
java.lang.String |
getAttribute(javax.xml.namespace.QName name)
|
|
java.lang.String |
getAttribute(java.lang.String nsUri,
java.lang.String localName)
|
|
byte[] |
getCipherValue()
|
|
java.lang.String |
getId()
|
|
java.security.Key |
getKey()
|
|
java.lang.String |
getLocalPart()
Gets the local name of this header element. |
|
java.lang.String |
getNamespaceURI()
|
|
ReferenceList |
getReferenceList()
|
|
boolean |
hasReferenceList()
|
|
boolean |
isCanonicalized()
|
|
|
readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge)
|
|
|
readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge,
com.sun.xml.bind.api.BridgeContext context)
|
|
|
readAsJAXB(javax.xml.bind.Unmarshaller unmarshaller)
|
|
javax.xml.stream.XMLStreamReader |
readHeader()
Reads the header as a XMLStreamReader. |
|
boolean |
refersToSecHdrWithId(java.lang.String id)
finds whether the this security header element refers to the element with given id |
|
void |
setId(java.lang.String id)
|
|
void |
setReferenceList(ReferenceList list)
|
|
void |
writeTo(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ErrorHandler errorHandler)
|
|
void |
writeTo(java.io.OutputStream os)
writes the jaxb encrypted key to to an XMLStreamWriter |
|
void |
writeTo(javax.xml.soap.SOAPMessage saaj)
|
|
void |
writeTo(javax.xml.stream.XMLStreamWriter streamWriter)
writes the jaxb encrypted key to to an XMLStreamWriter |
|
void |
writeTo(javax.xml.stream.XMLStreamWriter streamWriter,
java.util.HashMap props)
writes the jaxb encrypted key to to an XMLStreamWriter |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JAXBEncryptedKey(EncryptedKeyType ekt,
java.security.Key kk,
java.security.Key dk,
com.sun.xml.ws.api.SOAPVersion soapVersion)
throws XWSSecurityException
XWSSecurityException| Method Detail |
|---|
public void encrypt()
public void decrypt()
public java.lang.String getId()
getId in interface SecurityElementpublic void setId(java.lang.String id)
setId in interface SecurityElementpublic java.lang.String getNamespaceURI()
getNamespaceURI in interface SecurityElementpublic java.lang.String getLocalPart()
SecurityElement
getLocalPart in interface SecurityElement
public java.lang.String getAttribute(java.lang.String nsUri,
java.lang.String localName)
public java.lang.String getAttribute(javax.xml.namespace.QName name)
public javax.xml.stream.XMLStreamReader readHeader()
throws javax.xml.stream.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 SecurityElementjavax.xml.stream.XMLStreamException
public <T> T readAsJAXB(javax.xml.bind.Unmarshaller unmarshaller)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public <T> T readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge,
com.sun.xml.bind.api.BridgeContext context)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public <T> T readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(javax.xml.stream.XMLStreamWriter streamWriter)
throws javax.xml.stream.XMLStreamException
writeTo in interface SecurityElementWriterstreamWriter - javax.xml.stream.XMLStreamWriter
javax.xml.stream.XMLStreamExceptionpublic void writeTo(java.io.OutputStream os)
writeTo in interface SecurityElementWriteros - OutputStream
public void writeTo(javax.xml.soap.SOAPMessage saaj)
throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
public void writeTo(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ErrorHandler errorHandler)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public byte[] canonicalize(java.lang.String algorithm,
java.util.List<AttributeNS> namespaceDecls)
public boolean isCanonicalized()
public ReferenceList getReferenceList()
getReferenceList in interface EncryptedKeypublic boolean hasReferenceList()
public boolean refersToSecHdrWithId(java.lang.String id)
refersToSecHdrWithId in interface SecurityHeaderElementid -
public void setReferenceList(ReferenceList list)
setReferenceList in interface EncryptedKeypublic java.security.Key getKey()
getKey in interface EncryptedKeypublic byte[] getCipherValue()
public void writeTo(javax.xml.stream.XMLStreamWriter streamWriter,
java.util.HashMap props)
throws javax.xml.stream.XMLStreamException
writeTo in interface SecurityElementWriterstreamWriter - javax.xml.stream.XMLStreamWriterprops - HashMap
javax.xml.stream.XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||