JavaTM Platform
Standard Ed. 6

java.security.spec
클래스 RSAMultiPrimePrivateCrtKeySpec

java.lang.Object 
  상위를 확장 java.security.spec.RSAPrivateKeySpec 
      상위를 확장 java.security.spec.RSAMultiPrimePrivateCrtKeySpec
모든 구현된 인터페이스:
KeySpec


public class RSAMultiPrimePrivateCrtKeySpec
extends RSAPrivateKeySpec

이 클래스는, 중국 잉여정리 (CRT)의 정보의 값을 사용해 RSA 멀티 프라임 비공개키 (PKCS#1 v2. 1 의 정의에 의한다)를 효율을 향상시키기 위해서(때문에) 지정합니다.

도입된 버젼:
1.4
관련 항목:
Key , KeyFactory , KeySpec , PKCS8EncodedKeySpec , RSAPrivateKeySpec , RSAPublicKeySpec , RSAOtherPrimeInfo

생성자 의 개요
RSAMultiPrimePrivateCrtKeySpec (BigInteger  modulus, BigInteger  publicExponent, BigInteger  privateExponent, BigInteger  primeP, BigInteger  primeQ, BigInteger  primeExponentP, BigInteger  primeExponentQ, BigInteger  crtCoefficient, RSAOtherPrimeInfo [] otherPrimeInfo)
          PKCS#1 v2. 1 에 정의된 modulus, publicExponent, privateExponent, primeP, primeQ, primeExponentP, primeExponentQ, crtCoefficient, 및 otherPrimeInfo 을 지정해, 새로운 RSAMultiPrimePrivateCrtKeySpec 를 작성합니다.
 
메소드의 개요
 BigInteger getCrtCoefficient ()
          crtCoefficient 를 돌려줍니다.
 RSAOtherPrimeInfo [] getOtherPrimeInfo ()
          otherPrimeInfo 의 복제를 돌려줍니다.
 BigInteger getPrimeExponentP ()
          primeExponentP 를 돌려줍니다.
 BigInteger getPrimeExponentQ ()
          primeExponentQ 를 돌려줍니다.
 BigInteger getPrimeP ()
          primeP 를 돌려줍니다.
 BigInteger getPrimeQ ()
          primeQ 를 돌려줍니다.
 BigInteger getPublicExponent ()
          공개 지수를 돌려줍니다.
 
클래스 java.security.spec. RSAPrivateKeySpec 로부터 상속된 메소드
getModulus , getPrivateExponent
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

생성자 의 상세

RSAMultiPrimePrivateCrtKeySpec

public RSAMultiPrimePrivateCrtKeySpec(BigInteger  modulus,
                                      BigInteger  publicExponent,
                                      BigInteger  privateExponent,
                                      BigInteger  primeP,
                                      BigInteger  primeQ,
                                      BigInteger  primeExponentP,
                                      BigInteger  primeExponentQ,
                                      BigInteger  crtCoefficient,
                                      RSAOtherPrimeInfo [] otherPrimeInfo)
PKCS#1 v2. 1 에 정의된 modulus, publicExponent, privateExponent, primeP, primeQ, primeExponentP, primeExponentQ, crtCoefficient, 및 otherPrimeInfo 을 지정해, 새로운 RSAMultiPrimePrivateCrtKeySpec 를 작성합니다.

이 객체의 구축시에,otherPrimeInfo 의 내용이 후속의 변경에 영향을 받지 않게 카피되는 점에 주의해 주세요.

파라미터:
modulus - 계수(modulus) n
publicExponent - 공개 지수 e
privateExponent - 비공개 지수 d
primeP - n 의 소인수 p
primeQ - n 의 소인수 q
primeExponentP - d mod (p-1)
primeExponentQ - d mod (q-1)
crtCoefficient - 중국 잉여정리의 계수 q-1 mod p
otherPrimeInfo - 나머지의 프라임의 삼중항. 2 개의 소인수 (p 와 q)밖에 없는 경우는 null
예외:
NullPointerException - modulus,publicExponent,privateExponent,primeP,primeQ,primeExponentP,primeExponentQ,crtCoefficient 의 몇개의 파라미터가 null 의 경우
IllegalArgumentException - 빈 상태(empty)의 (길이가 0) otherPrimeInfo 가 지정되었을 경우
메소드의 상세

getPublicExponent

public BigInteger  getPublicExponent()
공개 지수를 돌려줍니다.

반환값:
공개 지수

getPrimeP

public BigInteger  getPrimeP()
primeP 를 돌려줍니다.

반환값:
primeP

getPrimeQ

public BigInteger  getPrimeQ()
primeQ 를 돌려줍니다.

반환값:
primeQ

getPrimeExponentP

public BigInteger  getPrimeExponentP()
primeExponentP 를 돌려줍니다.

반환값:
primeExponentP

getPrimeExponentQ

public BigInteger  getPrimeExponentQ()
primeExponentQ 를 돌려줍니다.

반환값:
primeExponentQ

getCrtCoefficient

public BigInteger  getCrtCoefficient()
crtCoefficient 를 돌려줍니다.

반환값:
crtCoefficient

getOtherPrimeInfo

public RSAOtherPrimeInfo [] getOtherPrimeInfo()
otherPrimeInfo 의 복제를 돌려줍니다. 2 개의 소인수 (p 와 q)밖에 없는 경우는 null 를 돌려줍니다.

반환값:
otherPrimeInfo 이 메소드가 불려 갈 때마다 새로운 배열을 돌려준다

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.