Home » geronimo-2.2-source-release » org.apache.geronimo.crypto.crypto.params » [javadoc | source]

    1   /**
    2    *  Licensed to the Apache Software Foundation (ASF) under one or more
    3    *  contributor license agreements.  See the NOTICE file distributed with
    4    *  this work for additional information regarding copyright ownership.
    5    *  The ASF licenses this file to You under the Apache License, Version 2.0
    6    *  (the "License"); you may not use this file except in compliance with
    7    *  the License.  You may obtain a copy of the License at
    8    *
    9    *     http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    *  Unless required by applicable law or agreed to in writing, software
   12    *  distributed under the License is distributed on an "AS IS" BASIS,
   13    *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    *  See the License for the specific language governing permissions and
   15    *  limitations under the License.
   16    */
   17   
   18   package org.apache.geronimo.crypto.crypto.params;
   19   
   20   import java.math.BigInteger;
   21   
   22   public class RSAPrivateCrtKeyParameters
   23       extends RSAKeyParameters
   24   {
   25       private BigInteger  e;
   26       private BigInteger  p;
   27       private BigInteger  q;
   28       private BigInteger  dP;
   29       private BigInteger  dQ;
   30       private BigInteger  qInv;
   31   
   32       /**
   33        *
   34        */
   35       public RSAPrivateCrtKeyParameters(
   36           BigInteger  modulus,
   37           BigInteger  publicExponent,
   38           BigInteger  privateExponent,
   39           BigInteger  p,
   40           BigInteger  q,
   41           BigInteger  dP,
   42           BigInteger  dQ,
   43           BigInteger  qInv)
   44       {
   45           super(true, modulus, privateExponent);
   46   
   47           this.e = publicExponent;
   48           this.p = p;
   49           this.q = q;
   50           this.dP = dP;
   51           this.dQ = dQ;
   52           this.qInv = qInv;
   53       }
   54   
   55       public BigInteger getPublicExponent()
   56       {
   57           return e;
   58       }
   59   
   60       public BigInteger getP()
   61       {
   62           return p;
   63       }
   64   
   65       public BigInteger getQ()
   66       {
   67           return q;
   68       }
   69   
   70       public BigInteger getDP()
   71       {
   72           return dP;
   73       }
   74   
   75       public BigInteger getDQ()
   76       {
   77           return dQ;
   78       }
   79   
   80       public BigInteger getQInv()
   81       {
   82           return qInv;
   83       }
   84   }

Home » geronimo-2.2-source-release » org.apache.geronimo.crypto.crypto.params » [javadoc | source]