|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.security.Identity
java.security.Signer
java.security.KeyStore
클래스,java.security.cert
패키지, 및 java.security.Principal
클래스로 옮겨졌습니다.
@Deprecated public abstract class Signer
데이터에 디지털 서명 할 수 있는 Identity 를 나타냅니다.
서명자의 비공개키의 관리는, 중요해 기밀을 필요로 하는 문제이므로, 열쇠의 사용 목적에 맞은 적절한 서브 클래스에 의해 처리할 필요가 있습니다.
Identity
,
직렬화 된 형식 생성자 의 개요 | |
---|---|
protected |
Signer ()
추천 되고 있지 않습니다. 서명자를 작성합니다. |
|
Signer (String name)
추천 되고 있지 않습니다. 지정된 아이덴티티명을 가지는 서명자를 작성합니다. |
|
Signer (String name,
IdentityScope scope)
추천 되고 있지 않습니다. 지정된 아이덴티티명과 아이덴티티 스코프를 가지는 서명자를 작성합니다. |
메소드의 개요 | |
---|---|
PrivateKey |
getPrivateKey ()
추천 되고 있지 않습니다. 서명자의 비공개키를 돌려줍니다. |
void |
setKeyPair (KeyPair pair)
추천 되고 있지 않습니다. 이 서명자에게 열쇠 페어 (공개키와 비공개키)를 설정합니다. |
String |
toString ()
추천 되고 있지 않습니다. 서명자의 정보를 캐릭터 라인으로 돌려줍니다. |
클래스 java.security. Identity 로부터 상속된 메소드 |
---|
addCertificate , certificates , equals , getInfo , getName , getPublicKey , getScope , hashCode , identityEquals , removeCertificate , setInfo , setPublicKey , toString |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , finalize , getClass , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
protected Signer()
public Signer(String name)
name
- 아이덴티티명public Signer(String name, IdentityScope scope) throws KeyManagementException
name
- 아이덴티티명scope
- 아이덴티티 스코프
KeyManagementException
- 스코프내에 같은 이름의 아이덴티티가 벌써 존재하는 경우메소드의 상세 |
---|
public PrivateKey getPrivateKey()
시큐리티 매니저가 존재하는 경우, 최초로, 시큐리티 매니저의 checkSecurityAccess
가 인수로서 "getSignerPrivateKey"
를 지정해 불려 가 비공개키를 돌려주어도 괜찮은지 어떤지를 확인합니다.
SecurityException
- 시큐리티 매니저가 존재해, 시큐리티 매니저의 checkSecurityAccess
메소드가 비공개키를 돌려주는 것을 허가하지 않는 경우SecurityManager.checkSecurityAccess(java.lang.String)
public final void setKeyPair(KeyPair pair) throws InvalidParameterException , KeyException
시큐리티 매니저가 존재하는 경우, 최초로, 시큐리티 매니저의 checkSecurityAccess
가 인수로서 "setSignerKeyPair"
를 지정해 불려 가 열쇠 페어를 설정해도 괜찮은지 어떤지를 확인합니다.
pair
- 초기화된 열쇠 페어
InvalidParameterException
- 열쇠 페어가 올바르게 초기화되어 있지 않은 경우
KeyException
- 열쇠 페어가 하등의 원인으로 설정할 수 없었던 경우
SecurityException
- 시큐리티 매니저가 존재해, 시큐리티 매니저의 checkSecurityAccess
메소드가 페어열쇠의 설정을 허가하지 않는 경우SecurityManager.checkSecurityAccess(java.lang.String)
public String toString()
Principal
내의 toString
Identity
내의 toString
SecurityManager.checkSecurityAccess(java.lang.String)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.