All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.aad.msal4j.IClientCertificate Maven / Gradle / Ivy

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.aad.msal4j;

import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.cert.CertificateEncodingException;
import java.util.List;

/**
 * Credential type containing X509 public certificate and RSA private key.
 * 

* For more details, see https://aka.ms/msal4j-client-credentials */ public interface IClientCertificate extends IClientCredential { /** * Returns private key of the credential. * * @return private key. */ PrivateKey privateKey(); /** * Base64 encoded hash of the the public certificate. * * @return base64 encoded string * @throws CertificateEncodingException if an encoding error occurs * @throws NoSuchAlgorithmException if requested algorithm is not available in the environment */ String publicCertificateHash() throws CertificateEncodingException, NoSuchAlgorithmException; /** * Base64 encoded public certificate. * * @return base64 encoded string * @throws CertificateEncodingException if an encoding error occurs */ List getEncodedPublicKeyCertificateChain() throws CertificateEncodingException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy