|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.SIRAPRISE.util.MyCertificate
public abstract class MyCertificate
Field Summary | |
---|---|
static java.lang.String |
RESOURCETYPE
|
static java.lang.String |
SUFFIX
|
static java.lang.String |
X509CERTIFICATETYPE
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RESOURCETYPE
public static final java.lang.String SUFFIX
public static final java.lang.String X509CERTIFICATETYPE
Method Detail |
---|
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 caller
java.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 caller
java.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |