java.security.spec

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 
java.security.spec
Provides classes and interfaces for key specifications and algorithm parameter specifications.

A key specification is a transparent representation of the key material that constitutes a key. A key may be specified in an algorithm-specific way, or in an algorithm-independent encoding format (such as ASN.1). This package contains key specifications for DSA public and private keys, RSA public and private keys, PKCS #8 private keys in DER-encoded format, and X.509 public and private keys in DER-encoded format.

An algorithm parameter specification is a transparent representation of the sets of parameters used with an algorithm. This package contains an algorithm parameter specification for parameters used with the DSA algorithm.

Package Specification

  • PKCS #1: RSA Encryption Standard, Version 1.5, November 1993
  • PKCS #8: Private-Key Information Syntax Standard, Version 1.2, November 1993
  • Federal Information Processing Standards Publication (FIPS PUB) 186: Digital Signature Standard (DSS)

Related Documentation

For documentation that includes information about algorithm parameter and key specifications, please see: @since 1.2
Java Source File NameTypeComment
AlgorithmParameterSpec.javaInterface A (transparent) specification of cryptographic parameters.

This interface contains no methods or constants.

DSAParameterSpec.javaClass This class specifies the set of parameters used with the DSA algorithm.
DSAPrivateKeySpec.javaClass This class specifies a DSA private key with its associated parameters.
DSAPublicKeySpec.javaClass This class specifies a DSA public key with its associated parameters.
ECField.javaInterface This interface represents an elliptic curve (EC) finite field.
ECFieldF2m.javaClass This immutable class defines an elliptic curve (EC) characteristic 2 finite field.
ECFieldFp.javaClass This immutable class defines an elliptic curve (EC) prime finite field.
ECGenParameterSpec.javaClass This immutable class specifies the set of parameters used for generating elliptic curve (EC) domain parameters.
ECParameterSpec.javaClass This immutable class specifies the set of domain parameters used with elliptic curve cryptography (ECC).
ECPoint.javaClass This immutable class represents a point on an elliptic curve (EC) in affine coordinates.
ECPrivateKeySpec.javaClass This immutable class specifies an elliptic curve private key with its associated parameters.
ECPublicKeySpec.javaClass This immutable class specifies an elliptic curve public key with its associated parameters.
EllipticCurve.javaClass This immutable class holds the necessary values needed to represent an elliptic curve.
EncodedKeySpec.javaClass This class represents a public or private key in encoded format.
InvalidKeySpecException.javaClass This is the exception for invalid key specifications.
InvalidParameterSpecException.javaClass This is the exception for invalid parameter specifications.
KeySpec.javaInterface A (transparent) specification of the key material that constitutes a cryptographic key.

If the key is stored on a hardware device, its specification may contain information that helps identify the key on the device.

A key may be specified in an algorithm-specific way, or in an algorithm-independent encoding format (such as ASN.1). For example, a DSA private key may be specified by its components x, p, q, and g (see DSAPrivateKeySpec ), or it may be specified using its DER encoding (see PKCS8EncodedKeySpec ).

This interface contains no methods or constants.

MGF1ParameterSpec.javaClass This class specifies the set of parameters used with mask generation function MGF1 in OAEP Padding and RSA-PSS signature scheme, as defined in the PKCS #1 v2.1 standard.

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

 MGF1Parameters ::= OAEP-PSSDigestAlgorthms
 
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 },
 ...
PKCS8EncodedKeySpec.javaClass This class represents the ASN.1 encoding of a private key, encoded according to the ASN.1 type PrivateKeyInfo.
PSSParameterSpec.javaClass 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 },
 ...
RSAKeyGenParameterSpec.javaClass This class specifies the set of parameters used to generate an RSA key pair.
RSAMultiPrimePrivateCrtKeySpec.javaClass This class specifies an RSA multi-prime private key, as defined in the PKCS#1 v2.1, using the Chinese Remainder Theorem (CRT) information values for efficiency.
RSAOtherPrimeInfo.javaClass This class represents the triplet (prime, exponent, and coefficient) inside RSA's OtherPrimeInfo structure, as defined in the PKCS#1 v2.1.
RSAPrivateCrtKeySpec.javaClass This class specifies an RSA private key, as defined in the PKCS#1 standard, using the Chinese Remainder Theorem (CRT) information values for efficiency.
RSAPrivateKeySpec.javaClass This class specifies an RSA private key.
RSAPublicKeySpec.javaClass This class specifies an RSA public key.
X509EncodedKeySpec.javaClass This class represents the ASN.1 encoding of a public key, encoded according to the ASN.1 type SubjectPublicKeyInfo.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.