- See Also:
- Top Examples, Source Code, @Deprecated,
Certificate
void decode(InputStream stream)
throws KeyException,
IOException
- See Also:
getFormat()
, encode(java.io.OutputStream)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
void encode(OutputStream stream)
throws KeyException,
IOException
- See Also:
getFormat()
, decode(java.io.InputStream)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
String getFormat()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
Principal getGuarantor()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
Principal getPrincipal()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
PublicKey getPublicKey()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1513]Get Principal and PublicKey of X509Certificate
By Sandy on 2005/08/10 05:10:41 Rate
try
{
CertificateFactory fact = CertificateFactory.getInstance ( "X.509" ) ;
InputStream in = new FileInputStream ( "test.cer" ) ;
X509Certificate cert = ( X509Certificate ) fact.generateCertificate ( in ) ;
in.close ( ) ;
Principal subj = cert.getSubjectDN ( ) ;
PublicKey pubKey = cert.getPublicKey ( ) ;
System.out.println ( subj ) ;
System.out.println ( pubKey ) ;
}
catch ( Exception e )
{
e.printStackTrace ( ) ;
}
String toString(boolean detailed)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples