001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: /**
019: * @author Vladimir N. Molotkov
020: * @version $Revision$
021: */package java.security.spec;
022:
023: import java.math.BigInteger;
024:
025: /**
026: * @com.intel.drl.spec_ref
027: *
028: */
029: public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec {
030: // Public Exponent
031: private final BigInteger publicExponent;
032: // Prime P
033: private final BigInteger primeP;
034: // Prime Q
035: private final BigInteger primeQ;
036: // Prime Exponent P
037: private final BigInteger primeExponentP;
038: // Prime Exponent Q
039: private final BigInteger primeExponentQ;
040: // CRT Coefficient
041: private final BigInteger crtCoefficient;
042:
043: /**
044: * @com.intel.drl.spec_ref
045: */
046: public RSAPrivateCrtKeySpec(BigInteger modulus,
047: BigInteger publicExponent, BigInteger privateExponent,
048: BigInteger primeP, BigInteger primeQ,
049: BigInteger primeExponentP, BigInteger primeExponentQ,
050: BigInteger crtCoefficient) {
051:
052: super (modulus, privateExponent);
053:
054: this .publicExponent = publicExponent;
055: this .primeP = primeP;
056: this .primeQ = primeQ;
057: this .primeExponentP = primeExponentP;
058: this .primeExponentQ = primeExponentQ;
059: this .crtCoefficient = crtCoefficient;
060: }
061:
062: /**
063: * @com.intel.drl.spec_ref
064: */
065: public BigInteger getCrtCoefficient() {
066: return crtCoefficient;
067: }
068:
069: /**
070: * @com.intel.drl.spec_ref
071: */
072: public BigInteger getPrimeExponentP() {
073: return primeExponentP;
074: }
075:
076: /**
077: * @com.intel.drl.spec_ref
078: */
079: public BigInteger getPrimeExponentQ() {
080: return primeExponentQ;
081: }
082:
083: /**
084: * @com.intel.drl.spec_ref
085: */
086: public BigInteger getPrimeP() {
087: return primeP;
088: }
089:
090: /**
091: * @com.intel.drl.spec_ref
092: */
093: public BigInteger getPrimeQ() {
094: return primeQ;
095: }
096:
097: /**
098: * @com.intel.drl.spec_ref
099: */
100: public BigInteger getPublicExponent() {
101: return publicExponent;
102: }
103: }
|