|
XML Digital Signature and Encryption, 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EncryptedKey
Represents the EncryptedKey
element.
Its schema definition is as follows:
Field Summary | |
---|---|
static java.lang.String |
TYPE
URI identifying the EncryptedKey KeyInfo type: http://www.w3.org/2001/04/xmlenc#EncryptedKey. |
Fields inherited from interface javax.xml.crypto.enc.EncryptedType |
---|
CONTENT, ELEMENT, XMLNS |
Method Summary | |
---|---|
java.io.InputStream |
decrypt(XMLDecryptContext context)
Decrypts the CipherData in this EncryptedKey . |
java.security.Key |
decryptKey(XMLDecryptContext context,
AlgorithmMethod alg)
Decrypts the CipherData in this EncryptedKey
and returns the decrypted key as a Key object. |
java.lang.String |
getCarriedKeyName()
Returns the carried key name of this EncryptedKey . |
java.lang.String |
getRecipient()
Returns a hint as to which recipient this EncryptedKey is
intended for. |
java.util.List |
getReferenceList()
Returns an unmodifiable list of ReferenceType s containing
pointers to data and keys encrypted using this key. |
Methods inherited from interface javax.xml.crypto.enc.EncryptedType |
---|
encrypt, getCipherData, getCipherText, getEncoding, getEncryptionMethod, getEncryptionProperties, getId, getKeyInfo, getMimeType, getToBeEncrypted, getType |
Methods inherited from interface javax.xml.crypto.XMLStructure |
---|
isFeatureSupported |
Field Detail |
---|
static final java.lang.String TYPE
RetrievalMethod
class to identify the referent's type.
Method Detail |
---|
java.util.List getReferenceList()
ReferenceType
s containing
pointers to data and keys encrypted using this key.
ReferenceType
s (may be
empty but never null
)java.lang.String getCarriedKeyName()
EncryptedKey
.
null
if not specifiedjava.lang.String getRecipient()
EncryptedKey
is
intended for.
null
if not specifiedjava.io.InputStream decrypt(XMLDecryptContext context) throws XMLEncryptionException
CipherData
in this EncryptedKey
.
decrypt
in interface EncryptedType
context
- the decryption context
CipherData
as an InputStream.
java.lang.NullPointerException
- if context is null
XMLEncryptionException
- if an error occurs while decryptingjava.security.Key decryptKey(XMLDecryptContext context, AlgorithmMethod alg) throws XMLEncryptionException
CipherData
in this EncryptedKey
and returns the decrypted key as a Key
object.
context
- the decryption contextalg
- the algorithm of the decrypted key
CipherData
as a key
java.lang.NullPointerException
- if context is null
or
alg is null
.
XMLEncryptionException
- if an error occurs while decrypting
|
XML Digital Signature and Encryption, 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |