Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * See the NOTICE file distributed with this work for additional
   * information regarding copyright ownership.
   *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
   * the License, or (at your option) any later version.
   *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
 package org.xwiki.crypto.signer.params;
 
PSS signer parameters.

Version:
$Id: 97a62086da1ec3d49ad097bed24bacdf81932a24 $
Since:
5.4RC1
 
 {
     private final AsymmetricKeyParameters keyParams;
     private final PssParameters pssParams;

    
Construct default RSASSA-PSS parameters according to PKCS #1 definition of default value.

Parameters:
keyParams the key to use for the RSA cipher.
 
     public PssSignerParameters(AsymmetricKeyParameters keyParams)
     {
         this. = keyParams;
         this. = new PssParameters();
     }

    
Construct RSASSA-PSS parameters using default trailer and the same digest algorithm for both hash and mgf1.

Parameters:
keyParams the key to use for the RSA cipher.
hashAlgorithm digest algorithm to use for hash and mgf1.
saltLength size of salt in bytes.
 
     public PssSignerParameters(AsymmetricKeyParameters keyParamsString hashAlgorithmint saltLength)
     {
         this. = keyParams;
         this. = new PssParameters(hashAlgorithmsaltLength);
     }

    
Construct RSASSA-PSS parameters using custom parameters.

Parameters:
keyParams the key to use for the RSA cipher.
hashAlgorithm digest algorithm to use for hash.
maskGenAlgorithm digest algorithm to use for mgf1.
saltLength size of salt in bytes.
 
     public PssSignerParameters(AsymmetricKeyParameters keyParamsString hashAlgorithmString maskGenAlgorithm,
         int saltLength)
     {
         this. = keyParams;
         this. = new PssParameters(hashAlgorithmmaskGenAlgorithmsaltLength);
     }

    
Construct RSASSA-PSS parameters using custom parameters.

Parameters:
keyParams the key to use for the RSA cipher.
hashAlgorithm digest algorithm to use for hash.
maskGenAlgorithm digest algorithm to use for mgf1.
saltLength size of salt in bytes.
trailerField trailer selection, only valid value is 1.
 
     public PssSignerParameters(AsymmetricKeyParameters keyParamsString hashAlgorithmString maskGenAlgorithm,
         int saltLengthint trailerField)
     {
         this. = keyParams;
         this. = new PssParameters(hashAlgorithmmaskGenAlgorithmsaltLengthtrailerField);
     }

    

Returns:
the key paramaters.
 
     {
         return ;
     }

    

Returns:
the PSS parameters.
    {
        return ;
    }
New to GrepCode? Check out our FAQ X