|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.transport.security.Cert
public class Cert
Cert is a X509 certificate that contains a public key.
The instance is valid and encodedable.
Wrapper to Certificate.
To Create a new certificate See CertificateUtils
| Field Summary | |
|---|---|
X509Certificate |
certificate
|
byte[] |
encodedCertificate
|
byte[] |
encodedCertificateThumbprint
|
| Constructor Summary | |
|---|---|
Cert(byte[] data)
Create Certificate |
|
Cert(X509Certificate certificate)
Constructor for Cert. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
X509Certificate |
getCertificate()
Getter for the field certificate. |
byte[] |
getEncoded()
getEncoded. |
byte[] |
getEncodedThumbprint()
getEncodedThumbprint. |
int |
getKeySize()
getKeySize. |
int |
hashCode()
|
static Cert |
load(File file)
Load X.509 Certificate from a file |
static Cert |
load(URL url)
Load X.509 Certificate from an url |
void |
save(File file)
save. |
void |
saveToPem(File file)
saveToPem. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final X509Certificate certificate
public final byte[] encodedCertificate
public final byte[] encodedCertificateThumbprint
| Constructor Detail |
|---|
public Cert(byte[] data)
throws ServiceResultException
data - encoded Certificate
ServiceResultException - if any.
public Cert(X509Certificate certificate)
throws CertificateEncodingException
Constructor for Cert.
certificate - a X509Certificate object.
CertificateEncodingException - if any.| Method Detail |
|---|
public static Cert load(URL url)
throws IOException,
CertificateException
url - a URL object.
IOException - if any.
CertificateException - In case the certificate is not valid
public static Cert load(File file)
throws IOException,
CertificateException
file - a File object.
IOException - if any.
CertificateException - In case the certificate is not valid
public void save(File file)
throws IOException
save.
file - a File object.
IOException - if any.
public void saveToPem(File file)
throws IOException
saveToPem.
file - a File object.
IOException - if any.public int getKeySize()
getKeySize.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic X509Certificate getCertificate()
Getter for the field certificate.
X509Certificate object.public byte[] getEncoded()
getEncoded.
public byte[] getEncodedThumbprint()
getEncodedThumbprint.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||