public class EncryptedKey extends EncryptedType
nsMap, TYPE_CONTENT, TYPE_CONTENT_URI, TYPE_ELEMENT, TYPE_ELEMENT_URI, TYPE_OTHERATTR_ALGORITHM, ATTR_ENCODING, ATTR_ID, ATTR_MIME_TYPE, ATTR_RECIPIENT, ATTR_TYPE, ATTR_URI, CONTENT_ONLY, CONTENT_ONLY_PROPERTY, DEFAULT_ENC_ENCODING, TAG_CARRIED_KEY_NAME, TAG_CIPHER_DATA, TAG_CIPHER_VALUE, TAG_DATA_REFERENCE, TAG_ENCRYPTED_DATA, TAG_ENCRYPTED_KEY, TAG_ENCRYPTED_TYPE, TAG_ENCRYPTION_METHOD, TAG_KEY_REFERENCE, TAG_KEY_SIZE, TAG_OAEP_PARAMS, TAG_REFERENCE_LIST, TC_ENCRYPTED_DATA, TC_ENCRYPTED_KEY, TC_ENCRYPTION_METHOD, TC_REFERENCE_LIST, VERBOSE, VERBOSE_PROPERTY, VERBOSE_PROPERTY_ALT, XMLENC_PREFIX, XMLENC_URI| Modifier and Type | Method and Description |
|---|---|
String |
getCarriedKeyName() |
String |
getRecipient() |
ReferenceList |
getReferenceList() |
Key |
getWrappedKey() |
Key |
getWrappedKey(EncryptionMethod keyType) |
static Key |
getWrappedKey(EncryptionMethod keyType,
byte[] keyBytes) |
protected byte[] |
getWrappedKeyBytes() |
static void |
main(String[] args) |
void |
setCarriedKeyName(String carriedKeyName) |
void |
setEncryptionMethod(EncryptionMethod em) |
void |
setRecipient(String recipient) |
void |
setReferenceList(ReferenceList referenceList) |
void |
setWrappedKey(Key key) |
String |
toString() |
void |
toXML(XMLOutputStream xos,
int indent) |
void |
toXML(XMLOutputStream xos,
String ns,
int indent) |
clear, getCipherData, getEncryptionMethod, getId, getKey, getKeyInfo, getKeyResolver, getType, getTypeURI, setCipherData, setEncryptionMethod, setId, setKey, setKey, setKeyInfo, setKeyResolver, setType, setTypepublic void setEncryptionMethod(EncryptionMethod em) throws EncryptionException
setEncryptionMethod in class EncryptedTypeEncryptionExceptionpublic void setRecipient(String recipient)
public String getRecipient()
public void setCarriedKeyName(String carriedKeyName)
public String getCarriedKeyName()
public ReferenceList getReferenceList()
public void setReferenceList(ReferenceList referenceList)
public String toString()
toString in class EncryptedTypepublic Key getWrappedKey()
public Key getWrappedKey(EncryptionMethod keyType) throws EncryptionException
EncryptionExceptionpublic static Key getWrappedKey(EncryptionMethod keyType, byte[] keyBytes) throws EncryptionException
EncryptionExceptionprotected final byte[] getWrappedKeyBytes()
throws EncryptionException
EncryptionExceptionpublic void setWrappedKey(Key key) throws EncryptionException
EncryptionExceptionpublic void toXML(XMLOutputStream xos, int indent) throws XMLStreamException
XMLStreamExceptionpublic void toXML(XMLOutputStream xos, String ns, int indent) throws XMLStreamException
XMLStreamException