|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CryptoSchema
Sealed content cryptography schema. A cryptography schema is used to link a KeySet
with the set of cryptography algorithms used when working with that key set. A cryptography schema must be specified when creating a key set. The schema defines what types of cryptography key are generated and what key sizes are used. The cryptography schema is also used (via the key set) when sealing or unsealing content. When performing operations such as sealing or unsealing the schema defines what algorithms are used for encrypting (and decrypting) the content, signing the content and calculating digests.
Instances of Crypto Schema objects can be created using the following factory style method(s).
CryptoSchema object = createCryptoSchema
(id);
Collections for CryptoSchema
objects can be created using the following factory method. This method creates the most appropriate collection implementation class for storing CryptoSchema
elements.
Collection
<CryptoSchema
> object =createCryptoSchemas
();
Consult the Id
property for more information on how this property can relate to CryptoSchema
collections.
Crypto Schema instances can be serialized as an XML document. This XML document can also be used to recreate a Crypto Schema object. The following XML document shows an example Crypto Schema in XML form.
<?xml version="1.0" encoding="UTF-8"?>
<content:CryptoSchema xmlns:content="http://xmlns.oracle.com/irm/content">
<id>AES128</id>
<encryptionTransformation>AES/CTR/NoPadding</encryptionTransformation>
<encryptionKeySize>128</encryptionKeySize>
<sessionKeyEncryptionTransformation>AES/ECB/NoPadding</sessionKeyEncryptionTransformation>
<sessionKeyEncryptionKeySize>128</sessionKeyEncryptionKeySize>
<hmacSigningAlgorithm>HmacSHA256</hmacSigningAlgorithm>
<hmacSigningKeySize>128</hmacSigningKeySize>
<digestAlgorithm>SHA-256</digestAlgorithm>
<useFips>false</useFips>
</content:CryptoSchema>
Crypto Schema instances can also be serialized by reference. A reference contains all the information needed to uniquely identify a Crypto Schema without needing to serialize the complete object. The reference form of the XML document can be seen below.
<?xml version="1.0" encoding="UTF-8"?>
<content:CryptoSchemaRef xmlns:content="http://xmlns.oracle.com/irm/content">
<id>AES128</id>
</content:CryptoSchemaRef>
Method Summary | |
---|---|
String |
getDigestAlgorithm() The message digest algorithm. |
String |
getEncryptionAlgorithm() The encryption algorithm name extracted from the encryption transformation. |
int |
getEncryptionBlockSize() The encryption algorithm block size. |
int |
getEncryptionKeySize() The encryption key size (in bits). |
String |
getEncryptionTransformation() The encryption transformation. |
String |
getHmacSigningAlgorithm() The signing algorithm specification. |
int |
getHmacSigningKeySize() The key size (in bits) for the HMAC operation. |
String |
getId() The identity of the schema. |
String |
getSessionKeyEncryptionAlgorithm() The session key encryption algorithm name extracted from the encryption transformation. |
int |
getSessionKeyEncryptionKeySize() The key size (in bits) for session key encryption. |
String |
getSessionKeyEncryptionTransformation() The session key encryption transformation. |
boolean |
getUseFips() If true, only FIPS-approved cryptography implementations should be used. |
Method Detail |
---|
String getId()
getCryptoSchemaById
.String getEncryptionTransformation()
String getEncryptionAlgorithm()
int getEncryptionBlockSize()
int getEncryptionKeySize()
String getHmacSigningAlgorithm()
int getHmacSigningKeySize()
String getDigestAlgorithm()
String getSessionKeyEncryptionTransformation()
String getSessionKeyEncryptionAlgorithm()
int getSessionKeyEncryptionKeySize()
boolean getUseFips()
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |