public class ClientCredentialFactory extends Object
Constructor and Description |
---|
ClientCredentialFactory() |
Modifier and Type | Method and Description |
---|---|
static IClientCertificate |
createFromCertificate(InputStream pkcs12Certificate,
String password)
Static method to create a
ClientCertificate instance from a certificate |
static IClientCertificate |
createFromCertificate(PrivateKey key,
X509Certificate publicCertificate)
Static method to create a
ClientCertificate instance. |
static IClientAssertion |
createFromClientAssertion(String clientAssertion)
Static method to create a
ClientAssertion instance. |
static IClientSecret |
createFromSecret(String secret)
Static method to create a
ClientSecret instance from a client secret |
public static IClientSecret createFromSecret(String secret)
ClientSecret
instance from a client secretsecret
- secret of application requesting a tokenClientSecret
public static IClientCertificate createFromCertificate(InputStream pkcs12Certificate, String password) throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, NoSuchProviderException, IOException
ClientCertificate
instance from a certificatepkcs12Certificate
- InputStream containing PCKS12 formatted certificatepassword
- certificate passwordClientCertificate
CertificateException
UnrecoverableKeyException
NoSuchAlgorithmException
KeyStoreException
NoSuchProviderException
IOException
public static IClientCertificate createFromCertificate(PrivateKey key, X509Certificate publicCertificate)
ClientCertificate
instance.key
- RSA private key to sign the assertion.publicCertificate
- x509 public certificate used for thumbprintClientCertificate
public static IClientAssertion createFromClientAssertion(String clientAssertion)
ClientAssertion
instance.clientAssertion
- Jwt token encoded as a base64 URL encoded stringClientAssertion
Copyright © 2013–2020. All rights reserved.