*-------------------------------------------------------
/** JCE Provider Information 얻어 오기 ... */
Provider[] providers = Security.getProviders();
for(int i=0; providers.length > i; i++)
{
txtProvider.append(" "+i+ " : " + providers[i].getName() +"n" );
txtProvider.append(" "+i+ " : " + providers[i].getVersion() + "n");
txtProvider.append(" "+i+ " : " + providers[i].getInfo() + "n");
}
/** --------------------------------------------------------- */
출력 결과는 ....
## Provider List Info ##
0 : SUN
0 : 1.2
0 : SUN (
D SA key/parameter generation;
DSA signing;
SHA-1,
MD5 digests;
SecureRandom;
X.509 certificates;
JKS keystore)
1 : IAIK
1 : 2.5100000000000002
1 : IAIK Security Provider v2.5100000000000002
2 : SunJCE
2 : 1.2
2 : SunJCE Provider
( implements DES,
Triple DES,
Blowfish,
PBE,
Diffie-Hellman,
HMAC-MD5,
HMAC-SHA1 )
/** JCE Provider Information 얻어 오기 ... */
Provider[] providers = Security.getProviders();
for(int i=0; providers.length > i; i++)
{
txtProvider.append(" "+i+ " : " + providers[i].getName() +"n" );
txtProvider.append(" "+i+ " : " + providers[i].getVersion() + "n");
txtProvider.append(" "+i+ " : " + providers[i].getInfo() + "n");
}
/** --------------------------------------------------------- */
출력 결과는 ....
## Provider List Info ##
0 : SUN
0 : 1.2
0 : SUN (
D SA key/parameter generation;
DSA signing;
SHA-1,
MD5 digests;
SecureRandom;
X.509 certificates;
JKS keystore)
1 : IAIK
1 : 2.5100000000000002
1 : IAIK Security Provider v2.5100000000000002
2 : SunJCE
2 : 1.2
2 : SunJCE Provider
( implements DES,
Triple DES,
Blowfish,
PBE,
Diffie-Hellman,
HMAC-MD5,
HMAC-SHA1 )
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
» | JCE정보 보는 소스 | 박상현 | 2001.10.16 | 2399 |