Code example for PSSParameterSpec

Methods: getDigestAlgorithm, getSaltLength

0
originalSpec = paramSpec;
            this.paramSpec = paramSpec;
        } 
         
        this.digest = JCEDigestUtil.getDigest(paramSpec.getDigestAlgorithm());
        this.saltLength = paramSpec.getSaltLength();
        this.trailer = getTrailer(paramSpec.getTrailerField());
    } 
     
    protected void engineInitVerify( 
        PublicKey   publicKey)
        throws InvalidKeyException 
    { 
        if (!(publicKey instanceof RSAPublicKey))
        { 
            throw new InvalidKeyException("Supplied key is not a RSAPublicKey instance");
        } 
 
        pss = new PSSSigner(signer, digest, saltLength);
        pss.init(false,