Package net.sf.libpdfsign.exception

Examples of net.sf.libpdfsign.exception.InvalidCertificateAliasException


        DocumentException,
        GeneralSecurityException
    {
        // Validate the certificate alias.
        if (keyStore.getCertificate(certificateAlias) == null) {
            throw new InvalidCertificateAliasException(messages.getString(
                "Unable_to_find_a_certificate_corresponding_to_the_given_alias."));
        }

        // Get the private key.
        PrivateKey key = (PrivateKey) keyStore.getKey(certificateAlias, password);
View Full Code Here

TOP

Related Classes of net.sf.libpdfsign.exception.InvalidCertificateAliasException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.