public class ResourceCertificateProvider extends java.lang.Object implements ICertificateProvider
Constructor and Description |
---|
ResourceCertificateProvider(java.lang.String path,
java.lang.String deviceCertificate,
java.lang.String deviceKey)
Initializes the certificate provider to load certificates from the specified path.
|
ResourceCertificateProvider(java.lang.String path,
java.lang.String certificate,
java.lang.String key,
java.lang.String[] full)
Initializes the certificate provider to load certificates from the specified path.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getDeviceCertificate()
Returns the device certificate.
|
byte[] |
getDeviceKey()
Returns the device key.
|
java.util.Enumeration |
getTrustCertificates()
Returns an enumeration of the specified certificates.
|
public ResourceCertificateProvider(java.lang.String path, java.lang.String deviceCertificate, java.lang.String deviceKey)
path
- The path to load the certificates from, relative to the class path.
The path should start with a slash and end with a slash.deviceCertificate
- The file name of the device certificate relative to
the specified path. The file name should not start with a slash.deviceKey
- The file name of the device key relative to the specified path.
The file name should not start with a slash.public ResourceCertificateProvider(java.lang.String path, java.lang.String certificate, java.lang.String key, java.lang.String[] full)
path
- The path to load the certificates from, relative to the class path.
The path should start with a slash and end with a slash.certificate
- The file name of the device certificate relative to
the specified path. The file name should not start with a slash.key
- The file name of the device key relative to the specified path.
The file name should not start with a slash.full
- The file names of the fully trusted certificates. The file names
should not start with a slash.public byte[] getDeviceCertificate()
getDeviceCertificate
in interface ICertificateProvider
public byte[] getDeviceKey()
getDeviceKey
in interface ICertificateProvider
public java.util.Enumeration getTrustCertificates()
getTrustCertificates
in interface ICertificateProvider