|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
java.security.cert.CertPathValidatorException
public class CertPathValidatorException
증명서 패스의 타당성을 검사할 경우에 검출되는 다양한 문제의 1 개를 나타내는 예외입니다.
CertPathValidatorException
에서는 랩 하고 있는 예외를 지원하고 있습니다. getCause
메소드는, 이 예외가 throw 되는 원인이 되는 throw 가능 객체를 돌려줍니다 (존재하는 경우).
CertPathValidatorException
에는, 예외가 throw 되었을 때에 검사중이었던 증명서 패스와 예외가 throw 되는 원인이 된 증명서 패스의 증명서의 인덱스도 포함됩니다. 이 정보를 가져오려면 ,getCertPath
메소드와 getIndex
를 사용합니다.
병행 액세스
특별히 거절하지 않는 한, 이 클래스에서 정의되고 있는 메소드는 thread 세이프가 아닙니다. 단일의 객체에 병행 액세스 할 필요가 있는 복수 thread는, thread간에 동기를 잡아, 필요에 따라서 잠글 필요가 있습니다. 복수의 thread가 각각 개별의 객체를 처리하는 경우, 그러한 thread는 동기 할 필요는 없습니다.
CertPathValidator
,
직렬화 된 형식 생성자 의 개요 | |
---|---|
CertPathValidatorException ()
상세 메세지를 지정하지 않고 CertPathValidatorException 를 작성합니다. |
|
CertPathValidatorException (String msg)
지정된 상세 메세지를 가지는 CertPathValidatorException 를 작성합니다. |
|
CertPathValidatorException (String msg,
Throwable cause)
지정한 상세 메세지와 원인을 가지는 CertPathValidatorException 를 작성합니다. |
|
CertPathValidatorException (String msg,
Throwable cause,
CertPath certPath,
int index)
지정한 상세 메세지, 원인, 증명서 패스, 및 인덱스를 가지는 CertPathValidatorException 를 작성합니다. |
|
CertPathValidatorException (Throwable cause)
지정한 throw 가능한 객체를 랩 하는 CertPathValidatorException 를 작성합니다. |
메소드의 개요 | |
---|---|
CertPath |
getCertPath ()
예외가 throw 되었을 때에 검사중이었던 증명서 패스를 돌려줍니다. |
int |
getIndex ()
throw 된 예외의 원인이 된 증명서 패스의 증명서의 인덱스를 돌려줍니다. |
클래스 java.lang. Throwable 로부터 상속된 메소드 |
---|
fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
public CertPathValidatorException()
CertPathValidatorException
를 작성합니다.
public CertPathValidatorException(String msg)
CertPathValidatorException
를 작성합니다. 상세 메세지는, 이 특정의 예외를 설명하는 String
입니다.
msg
- 상세 메세지public CertPathValidatorException(Throwable cause)
CertPathValidatorException
를 작성합니다. 이것에 의해 어떤 예외라도, 디버그시에 도움이 되는 랩 된 예외의 정보를 보관 유지하면서,CertPathValidatorException
로 변환할 수 있습니다. 상세 메세지는 (cause==null ? null :cause.toString()
)로 설정되어 일반적으로, 원인이 된 클래스와 상세 메세지가 포함됩니다.
cause
- 원인 (나중에 getCause()
메소드로 취득하기 위해서 보존된다). (null
치가 허가되고 있어 원인이 존재하지 않는가 불명한 것을 나타낸다)public CertPathValidatorException(String msg, Throwable cause)
CertPathValidatorException
를 작성합니다.
msg
- 상세 메세지cause
- 원인 (나중에 getCause()
메소드로 취득하기 위해서 보존된다). (null
치가 허가되고 있어 원인이 존재하지 않는가 불명한 것을 나타낸다)public CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index)
CertPathValidatorException
를 작성합니다.
msg
- 상세 메세지. 존재하지 않는 경우는 null
cause
- 원인. 존재하지 않는 경우는 null
certPath
- 에러가 검출되었을 때에 검사중이었던 증명서 패스index
- 에러의 원인이 된 증명서 패스의 증명서의 인덱스. 타당하지 않은 경우는 -1.
CertPath
의 증명서 리스트는 0 으로부터 시작되는 것에 주의
IndexOutOfBoundsException
- 인덱스가 범위외의 경우 (index < -1 || (certPath ! = null && index >= certPath.getCertificates(). size())
IllegalArgumentException
- certPath
가 null
이며, 한편 index
가 -1 가 아닌 경우메소드의 상세 |
---|
public CertPath getCertPath()
CertPath
. 지정되어 있지 않은 경우는 null
public int getIndex()
CertPath
의 증명서 리스트는 0 으로부터 시작되는 것에 주의해 주세요. 인덱스가 설정되어 있지 않은 경우는,-1 이 돌려주어집니다.
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.