pssparameterspec.java

来自「JAVA基本类源代码,大家可以学习学习!」· Java 代码 · 共 55 行

JAVA
55
字号
/* * @(#)PSSParameterSpec.java	1.3 03/01/23 * * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package java.security.spec;import java.math.BigInteger;/** * This class specifies a parameter spec for RSA PSS encoding scheme,  * as defined in the PKCS#1 v2.1. * * @author Valerie Peng * * @version 1.3 03/01/23 * * @see AlgorithmParameterSpec * @see java.security.Signature * * @since 1.4 */public class PSSParameterSpec implements AlgorithmParameterSpec {    private int saltLen = 0;   /**    * Creates a new <code>PSSParameterSpec</code>    * given the salt length as defined in PKCS#1.    *    * @param saltLen the length of salt in bits to be used in PKCS#1     * PSS encoding.    * @exception IllegalArgumentException if <code>saltLen</code> is    * less than 0.    */    public PSSParameterSpec(int saltLen) {	if (saltLen < 0) {	    throw new IllegalArgumentException("invalid saltLen value");	}	this.saltLen = saltLen;    }    /**     * Returns the salt length in bits.     *     * @return the salt length.     */    public int getSaltLength() {	return saltLen;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?