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.KeyGeneratorSpi
public abstract class KeyGeneratorSpi
Esta classe define a Interface de Provedor de Serviço (SPI,
Service Provider Interface) para a classe KeyGenerator.
Todos os métodos abstratos desta classe devem ser implementados por cada
provedor de serviços criptográficos que desejar fornecer o mecanismo de um
gerador de chaves para um determinado algoritmo.
SecretKey| Constructor Summary | |
|---|---|
KeyGeneratorSpi()
|
|
| Method Summary | |
|---|---|
protected abstract SecretKey |
engineGenerateKey()
Gera uma chave secreta. |
protected abstract void |
engineInit(AlgorithmParameterSpec params,
SecureRandom random)
Inicializa o gerador de chaves com o conjunto especificado de parâmetros e uma fonte de aleatoriedade fornecida pelo usuário. |
protected abstract void |
engineInit(int keysize,
SecureRandom random)
Inicializa este gerador de chaves para um determinado tamanho de chave, usando a dada fonte de aleatoriedade. |
protected abstract void |
engineInit(SecureRandom random)
Inicializa o gerador de chaves. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyGeneratorSpi()
| Method Detail |
|---|
protected abstract void engineInit(SecureRandom random)
random - a fonte de aleatoriedade para este gerador.
protected abstract void engineInit(AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidAlgorithmParameterException
params - Os parâmetros de geração da chaverandom - A fonte de aleatoriedade para este gerador de chaves
InvalidAlgorithmParameterException - se params não for
apropriado para este gerador de chaves
protected abstract void engineInit(int keysize,
SecureRandom random)
keysize - O tamanho da chave. Esta é uma métrica específica do algoritmo,
especificada em número de bitsrandom - a fonte de aleatoriedade para este gerador de chaves
InvalidParameterException - se o tamanho da chave está incorreto ou não é suportado.protected abstract SecretKey engineGenerateKey()
|
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.