public abstract class AbstractCipher extends Object implements ICipher, IConfigurable
コンストラクタと説明 |
---|
AbstractCipher() |
修飾子とタイプ | メソッドと説明 |
---|---|
byte[] |
decrypt(byte[] encrypted) |
byte[] |
encrypt(byte[] plain) |
String |
getAlgorithm() |
int |
getDecryptBlockSize(Key key) |
int |
getEncryptBlockSize(Key key) |
File |
getFile() |
InputStream |
getInputStream() |
Key |
getKey() |
String |
getKeyAlgorithm() |
abstract KeySpec |
getKeySpec() |
String |
getPassword() |
void |
init(IConfiguration config)
実装クラスがインスタンス化される時に呼び出されます。
|
boolean |
isPrivateKey() |
protected byte[] |
load() |
protected byte[] |
load(File file) |
protected byte[] |
load(InputStream is) |
void |
setAlgorithm(String algorithm) |
void |
setFile(File file) |
void |
setInputStream(InputStream is) |
void |
setKeyAlgorithm(String algorithm) |
void |
setPassword(String password) |
void |
setPrivateKey(boolean privateKey) |
public void init(IConfiguration config) throws Exception
IConfigurable
init
インタフェース内 IConfigurable
config
- 設定ファイル中のそのモジュールに関する記述の
コンテキストを表すIConfigurationオブジェクトException
public byte[] encrypt(byte[] plain) throws Exception
public byte[] decrypt(byte[] encrypted) throws Exception
protected byte[] load(InputStream is) throws Exception
Exception
public void setAlgorithm(String algorithm)
setAlgorithm
インタフェース内 ICipher
public String getAlgorithm()
public void setKeyAlgorithm(String algorithm)
setKeyAlgorithm
インタフェース内 ICipher
public String getKeyAlgorithm()
public File getFile()
public void setInputStream(InputStream is)
setInputStream
インタフェース内 ICipher
public InputStream getInputStream()
public void setPassword(String password)
public String getPassword()
public void setPrivateKey(boolean privateKey)
public boolean isPrivateKey()
public int getEncryptBlockSize(Key key)
public int getDecryptBlockSize(Key key)
Copyright © 2021 S.D.S Co.,Ltd.. All rights reserved.