Please note that this translation of the specification is the result of a java.net community project ( https://jdk5-api-pt-br.dev.java.net/ ). The official version of the specification is the US English language version which can be found at http://java.sun.com/j2se/1.5.0/docs/api/. In case of disputes, the authoritative version of the specification is the original, English document.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.crypto.spec.DESedeKeySpec
public class DESedeKeySpec
Esta classe especifica uma chave DES-EDE ("triple-DES").
| Field Summary | |
|---|---|
static int |
DES_EDE_KEY_LEN
A constante que define o comprimento de uma chave DESede em bytes. |
| Constructor Summary | |
|---|---|
DESedeKeySpec(byte[] key)
Cria um objeto DESedeKeySpec object usando os primeiros 24 bytes de key como o material de chave para a chave DES-EDE. |
|
DESedeKeySpec(byte[] key,
int offset)
Cria um objeto DESedeKeySpec object usando os primeiros 24 bytes de key, iniciando ao deslocamento offset inclusive,
como o material de chave para a chave DES-EDE. |
|
| Method Summary | |
|---|---|
byte[] |
getKey()
Retorna a chave DES-EDE. |
static boolean |
isParityAdjusted(byte[] key,
int offset)
Checa se a paridade da chave DES-EDE, iniciando em offset
inclusive, está ajustada. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DES_EDE_KEY_LEN
| Constructor Detail |
|---|
public DESedeKeySpec(byte[] key)
throws InvalidKeyException
key como o material de chave para a chave DES-EDE.
Os bytes que constituem a chave DES-EDE key são aqueles entre
key[0] e key[23], inclusive.
key - o buffer com o material de chave DES-EDE. Os primeiros
24 bytes do buffer são copiados para precaver-se contra posterior modificação.
NullPointerException - se key for null.
InvalidKeyException - se o dado material de chave for menor que 24 bytes.
public DESedeKeySpec(byte[] key,
int offset)
throws InvalidKeyException
key, iniciando ao deslocamento offset inclusive,
como o material de chave para a chave DES-EDE.
Os bytes que constituem a chave DES-EDE key são aqueles entre
key[offset] e key[offset+23], inclusive.
key - o buffer com o material de chave DES-EDE. Os primeiros
24 bytes do buffer, iniciando em offset inclusive,
são copiados para precaver-se contra posterior modificação.offset - o deslocamento em key onde se inicia o material da chave DES-EDE.
NullPointerException - se key for null.
InvalidKeyException - se o dado material de chave, iniciando em
offset inclusive, for menor que 24 bytes.| Method Detail |
|---|
public byte[] getKey()
public static boolean isParityAdjusted(byte[] key,
int offset)
throws InvalidKeyException
offset
inclusive, está ajustada.
key - um array de bytes que contém o valor da chaveoffset - o deslocamento no array de bytes
NullPointerException - se key for null.
InvalidKeyException - se o dado material de chave, iniciando em
offset inclusive, for menor que 24 bytes.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Copyright 2006 Sun Microsystems, Inc. Todos os direitos reservados. O uso está sujeito aos termos da licensa.