edu.vt.middleware.crypt.io
Class X509CertificateCredentialReader
java.lang.Object
edu.vt.middleware.crypt.io.AbstractX509CredentialReader<X509Certificate>
edu.vt.middleware.crypt.io.X509CertificateCredentialReader
- All Implemented Interfaces:
- CredentialReader<X509Certificate>
public class X509CertificateCredentialReader
- extends AbstractX509CredentialReader<X509Certificate>
Reads X.509 certificates from encoded representation. Both PEM and DER
encodings are supported.
- Version:
- $Revision: 2744 $
- Author:
- Middleware Services
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X509CertificateCredentialReader
public X509CertificateCredentialReader()
read
public X509Certificate read(InputStream in)
throws IOException,
CryptException
- Reads a credential, commonly in encoded format, from the given input
stream.
- Parameters:
in - Input stream from which to read credential.
- Returns:
- Credential read from input stream.
- Throws:
IOException - On IO exceptions.
CryptException - On cryptography errors such as invalid formats,
unsupported ciphers, illegal settings.
Copyright © 2003-2013 Virginia Tech. All Rights Reserved.