Java Doc for PSSParameterSpec.java in  » 6.0-JDK-Core » security » java » security » spec » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » security » java.security.spec 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.security.spec.PSSParameterSpec

PSSParameterSpec
public class PSSParameterSpec implements AlgorithmParameterSpec(Code)
This class specifies a parameter spec for RSA-PSS signature scheme, as defined in the PKCS#1 v2.1 standard.

Its ASN.1 definition in PKCS#1 standard is described below:

 RSASSA-PSS-params ::= SEQUENCE {
 hashAlgorithm      [0] OAEP-PSSDigestAlgorithms  DEFAULT sha1,
 maskGenAlgorithm   [1] PKCS1MGFAlgorithms  DEFAULT mgf1SHA1,
 saltLength         [2] INTEGER  DEFAULT 20,
 trailerField       [3] INTEGER  DEFAULT 1
 }
 
where
 OAEP-PSSDigestAlgorithms    ALGORITHM-IDENTIFIER ::= {
 { OID id-sha1 PARAMETERS NULL   }|
 { OID id-sha256 PARAMETERS NULL }|
 { OID id-sha384 PARAMETERS NULL }|
 { OID id-sha512 PARAMETERS NULL },
 ...  -- Allows for future expansion --
 }
 PKCS1MGFAlgorithms    ALGORITHM-IDENTIFIER ::= {
 { OID id-mgf1 PARAMETERS OAEP-PSSDigestAlgorithms },
 ...  -- Allows for future expansion --
 }
 

Note: the PSSParameterSpec.DEFAULT uses the following: message digest -- "SHA-1" mask generation function (mgf) -- "MGF1" parameters for mgf -- MGF1ParameterSpec.SHA1 SaltLength -- 20 TrailerField -- 1
See Also:   MGF1ParameterSpec
See Also:   AlgorithmParameterSpec
See Also:   java.security.Signature
author:
   Valerie Peng
version:
   1.15 07/05/05
since:
   1.4



Field Summary
final public static  PSSParameterSpecDEFAULT
     The PSS parameter set with all default values.

Constructor Summary
public  PSSParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, int saltLen, int trailerField)
     Creates a new PSSParameterSpec as defined in the PKCS #1 standard using the specified message digest, mask generation function, parameters for mask generation function, salt length, and trailer field values.
Parameters:
  mdName - the algorithm name of the hash function.
Parameters:
  mgfName - the algorithm name of the mask generation function.
Parameters:
  mgfSpec - the parameters for the mask generation function.
public  PSSParameterSpec(int saltLen)
     Creates a new PSSParameterSpec using the specified salt length and other default values as defined in PKCS#1.

Method Summary
public  StringgetDigestAlgorithm()
     Returns the message digest algorithm name.
public  StringgetMGFAlgorithm()
     Returns the mask generation function algorithm name.
public  AlgorithmParameterSpecgetMGFParameters()
     Returns the parameters for the mask generation function.
public  intgetSaltLength()
     Returns the salt length in bits.
public  intgetTrailerField()
     Returns the value for the trailer field, i.e.

Field Detail
DEFAULT
final public static PSSParameterSpec DEFAULT(Code)
The PSS parameter set with all default values.
since:
   1.5




Constructor Detail
PSSParameterSpec
public PSSParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, int saltLen, int trailerField)(Code)
Creates a new PSSParameterSpec as defined in the PKCS #1 standard using the specified message digest, mask generation function, parameters for mask generation function, salt length, and trailer field values.
Parameters:
  mdName - the algorithm name of the hash function.
Parameters:
  mgfName - the algorithm name of the mask generation function.
Parameters:
  mgfSpec - the parameters for the mask generation function. If null is specified, null will be returned by getMGFParameters().
Parameters:
  saltLen - the length of salt.
Parameters:
  trailerField - the value of the trailer field.
exception:
  NullPointerException - if mdName, or mgfName is null.
exception:
  IllegalArgumentException - if saltLenor trailerField is less than 0.
since:
   1.5



PSSParameterSpec
public PSSParameterSpec(int saltLen)(Code)
Creates a new PSSParameterSpec using the specified salt length and other default values as defined in PKCS#1.
Parameters:
  saltLen - the length of salt in bits to be used in PKCS#1 PSS encoding.
exception:
  IllegalArgumentException - if saltLen isless than 0.




Method Detail
getDigestAlgorithm
public String getDigestAlgorithm()(Code)
Returns the message digest algorithm name. the message digest algorithm name.
since:
   1.5



getMGFAlgorithm
public String getMGFAlgorithm()(Code)
Returns the mask generation function algorithm name. the mask generation function algorithm name.
since:
   1.5



getMGFParameters
public AlgorithmParameterSpec getMGFParameters()(Code)
Returns the parameters for the mask generation function. the parameters for the mask generation function.
since:
   1.5



getSaltLength
public int getSaltLength()(Code)
Returns the salt length in bits. the salt length.



getTrailerField
public int getTrailerField()(Code)
Returns the value for the trailer field, i.e. bc in PKCS#1 v2.1. the value for the trailer field, i.e. bc in PKCS#1 v2.1.
since:
   1.5



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.