IClientCertificate Interface
Implements
public interface IClientCertificate
extends IClientCredential
Credential type containing X509 public certificate and RSA private key.
For more details, see https://aka.ms/msal4j-client-credentials
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<java.lang.String> |
getEncodedPublicKeyCertificateChain()
Base64 encoded public certificate. |
abstract java.security.PrivateKey |
privateKey()
Returns private key of the credential. |
abstract java.lang.String |
publicCertificateHash()
Base64 encoded SHA-1 hash of the public certificate. |
default java.lang.String |
publicCertificateHash256()
Base64 encoded SHA-256 hash of the public certificate. |
Method Details
getEncodedPublicKeyCertificateChain
public abstract List
Base64 encoded public certificate.
Returns:
Throws:
privateKey
public abstract PrivateKey privateKey()
Returns private key of the credential.
Returns:
publicCertificateHash
public abstract String publicCertificateHash()
Base64 encoded SHA-1 hash of the public certificate.
Returns:
Throws:
publicCertificateHash256
public default String publicCertificateHash256()
Base64 encoded SHA-256 hash of the public certificate.
Returns:
Throws: