Code example for GeneralSecurityException

Methods: getMessage

0
signature.setParameter(sigParams.getParameterSpec(PSSParameterSpec.class));
                } 
                catch (GeneralSecurityException e)
                { 
                    throw new SignatureException("Exception extracting parameters: " + e.getMessage());
                } 
            } 
        } 
    } 
     
    static String getSignatureName(
        AlgorithmIdentifier sigAlgId) 
    { 
        ASN1Encodable params = sigAlgId.getParameters();
         
        if (params != null && !derNull.equals(params))
        { 
            if (sigAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS))
            { 
                RSASSAPSSparams rsaParams = RSASSAPSSparams.getInstance(params);