public class TrustStoreHolder extends Object
Modifier and Type | Method and Description |
---|---|
static TrustStoreHolder |
getInstance()
Get the trust store.
|
Certificate |
getTrustedCertificate(String certificateAlia,
String trustStoreFilePath,
char[] trustStorePassword)
Get the certificate for a given key alias from trustStore.
|
PublicKey |
getTrustedPublicKey(String certificateAlia,
String trustStoreFilePath,
char[] trustStorePassword)
Get the public key for a given key alias from trustStore.
|
public static TrustStoreHolder getInstance()
public PublicKey getTrustedPublicKey(String certificateAlia, String trustStoreFilePath, char[] trustStorePassword) throws BallerinaException
certificateAlia
- the alias nametrustStoreFilePath
- Trust store file pathtrustStorePassword
- Trust store passwordBallerinaException
- if the trustStore has not been initialized
(loaded), or this operation fails for some other reasonpublic Certificate getTrustedCertificate(String certificateAlia, String trustStoreFilePath, char[] trustStorePassword) throws BallerinaException
certificateAlia
- the alias nametrustStoreFilePath
- Trust store file pathtrustStorePassword
- Trust store passwordBallerinaException
- if the trustStore has not been initialized
(loaded), or this operation fails for some other reasonCopyright © 2018 WSO2. All rights reserved.