public abstract class MyCertificate
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RESOURCETYPE |
static java.lang.String |
SUFFIX |
static java.lang.String |
X509CERTIFICATETYPE |
| Modifier and Type | Method and Description |
|---|---|
static java.security.cert.Certificate |
getCertificate(java.lang.Class<?> clazz)
Gets a Certificate object of the default certificate type.
|
static java.security.cert.Certificate |
getCertificate(java.lang.Class<?> clazz,
java.lang.String certificateType)
Gets a Certificate object of the given certificate type.
|
static java.io.InputStream |
getCertificateInputStream(java.lang.Class<?> clazz)
Gets an InputStream for reading a resource corresponding to the given class.
|
static java.security.cert.Certificate |
getPackageCertificate(java.lang.Class<?> clazz)
Gets a Certificate object of the default certificate type.
|
static java.security.cert.Certificate |
getPackageCertificate(java.lang.Class<?> clazz,
java.lang.String certificateType)
Gets a Certificate object of the given certificate type.
|
static java.io.InputStream |
getPackageCertificateInputStream(java.lang.Class<?> clazz)
Gets an InputStream for reading a resource corresponding to the package of the given class.
|
public static final java.lang.String RESOURCETYPE
public static final java.lang.String SUFFIX
public static final java.lang.String X509CERTIFICATETYPE
public static java.security.cert.Certificate getCertificate(java.lang.Class<?> clazz)
throws java.security.cert.CertificateException,
NotFoundException,
java.io.IOException,
java.security.cert.CertificateException
clazz - The class of the object for which a certificate is to be found. The name of the resource that will be searched for is the full classname, followed by the SUFFIX constant.java.security.cert.CertificateException - -NotFoundException - -java.io.IOException - -java.security.cert.CertificateException - -public static java.security.cert.Certificate getCertificate(java.lang.Class<?> clazz,
java.lang.String certificateType)
throws java.security.cert.CertificateException,
NotFoundException,
java.io.IOException,
java.security.cert.CertificateException
clazz - The class of the object for which a certificate is to be found. The name of the resource that will be searched for is the full classname, followed by the SUFFIX constant.certificateType - The name of the Certificate type to be returned to the callerjava.security.cert.CertificateException - -NotFoundException - -java.io.IOException - -java.security.cert.CertificateException - -public static java.io.InputStream getCertificateInputStream(java.lang.Class<?> clazz)
throws NotFoundException
clazz - The class of the object for which a certificate is to be found. The name of the resource that will be searched for is the full classname, followed by the SUFFIX constant.NotFoundException - -public static java.security.cert.Certificate getPackageCertificate(java.lang.Class<?> clazz)
throws java.security.cert.CertificateException,
NotFoundException,
java.io.IOException,
java.security.cert.CertificateException
clazz - The class of the object for which a certificate is to be found. The name of the resource that will be searched for is the full packagename, followed by the SUFFIX constant.java.security.cert.CertificateException - -NotFoundException - -java.io.IOException - -java.security.cert.CertificateException - -public static java.security.cert.Certificate getPackageCertificate(java.lang.Class<?> clazz,
java.lang.String certificateType)
throws java.security.cert.CertificateException,
NotFoundException,
java.io.IOException,
java.security.cert.CertificateException
clazz - The class of the object for which a certificate is to be found. The name of the resource that will be searched for is the full packagename, followed by the SUFFIX constant.certificateType - The name of the Certificate type to be returned to the callerjava.security.cert.CertificateException - -NotFoundException - -java.io.IOException - -java.security.cert.CertificateException - -public static java.io.InputStream getPackageCertificateInputStream(java.lang.Class<?> clazz)
throws NotFoundException
clazz - The class of the object for which a certificate is to be found. The name of the resource that will be searched for is the full classname, followed by the SUFFIX constant.NotFoundException - -