|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.types.content.crypto.CryptoSchema
public class CryptoSchema
Crypto Schema type. 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.
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>
Constructor Summary | |
---|---|
CryptoSchema() No argument constructor. |
|
CryptoSchema(String id, String encryptionTransformation, int encryptionKeySize, String hmacSigningAlgorithm, int hmacSigningKeySize, String digestAlgorithm, String sessionKeyEncryptionTransformation, int sessionKeyEncryptionKeySize, boolean useFips) Constructor. |
Method Summary | |
---|---|
String |
getDigestAlgorithm() The message digest algorithm. |
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. |
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. |
void |
setDigestAlgorithm(String value) The message digest algorithm. |
void |
setEncryptionKeySize(int value) The encryption key size (in bits). |
void |
setEncryptionTransformation(String value) The encryption transformation. |
void |
setHmacSigningAlgorithm(String value) The signing algorithm specification. |
void |
setHmacSigningKeySize(int value) The key size (in bits) for the HMAC operation. |
void |
setId(String value) The identity of the schema. |
void |
setSessionKeyEncryptionKeySize(int value) The key size (in bits) for session key encryption. |
void |
setSessionKeyEncryptionTransformation(String value) The session key encryption transformation. |
void |
setUseFips(boolean value) If true, only FIPS-approved cryptography implementations should be used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CryptoSchema()
public CryptoSchema(String id, String encryptionTransformation, int encryptionKeySize, String hmacSigningAlgorithm, int hmacSigningKeySize, String digestAlgorithm, String sessionKeyEncryptionTransformation, int sessionKeyEncryptionKeySize, boolean useFips)
Method Detail |
---|
public String getId()
public void setId(String value)
value
- the new value for the property.public String getEncryptionTransformation()
public void setEncryptionTransformation(String value)
value
- the new value for the property.public int getEncryptionKeySize()
public void setEncryptionKeySize(int value)
value
- the new value for the property.public String getHmacSigningAlgorithm()
public void setHmacSigningAlgorithm(String value)
value
- the new value for the property.public int getHmacSigningKeySize()
public void setHmacSigningKeySize(int value)
value
- the new value for the property.public String getDigestAlgorithm()
public void setDigestAlgorithm(String value)
value
- the new value for the property.public String getSessionKeyEncryptionTransformation()
public void setSessionKeyEncryptionTransformation(String value)
value
- the new value for the property.public int getSessionKeyEncryptionKeySize()
public void setSessionKeyEncryptionKeySize(int value)
value
- the new value for the property.public boolean getUseFips()
public void setUseFips(boolean value)
value
- the new value for the property.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |