|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.crypto.MacSpi
public abstract class MacSpi
이 클래스는,Mac
클래스의 Service Provider Interface (SPI)를 정의합니다. 특정의 MAC 알고리즘의 구현을 제공하는 각 암호화 서비스 프로바이더는, 이 클래스의 모든 추상 메소드를 구현할 필요가 있습니다.
Cloneable 인터페이스는, 자유롭게 구현할 수 있습니다.
생성자 의 개요 | |
---|---|
MacSpi ()
|
메소드의 개요 | |
---|---|
Object |
clone ()
구현이 복제 가능한 경우는 복제를 돌려줍니다. |
protected abstract byte[] |
engineDoFinal ()
MAC 의 계산을 완료해, 장래의 사용을 위해서(때문에) MAC 를 리셋 합니다. |
protected abstract int |
engineGetMacLength ()
MAC 의 길이를 바이트 단위로 돌려줍니다. |
protected abstract void |
engineInit (Key key,
AlgorithmParameterSpec params)
지정된 (비밀) 열쇠와 알고리즘 파라미터를 사용해 MAC 를 초기화합니다. |
protected abstract void |
engineReset ()
장래의 사용을 위해서(때문에) MAC 를 리셋 합니다. |
protected abstract void |
engineUpdate (byte input)
지정된 바이트를 처리합니다. |
protected abstract void |
engineUpdate (byte[] input,
int offset,
int len)
input 내의 len 바이트를 처리합니다. |
protected void |
engineUpdate (ByteBuffer input)
ByteBuffer input 내의 input.position() 로부터 시작되는 input.remaining() 바이트를 처리합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자 의 상세 |
---|
public MacSpi()
메소드의 상세 |
---|
protected abstract int engineGetMacLength()
protected abstract void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException , InvalidAlgorithmParameterException
key
- (비밀) 열쇠params
- 알고리즘 파라미터
InvalidKeyException
- 지정된 열쇠가 이 MAC 의 초기화에 올바르지 않은 경우
InvalidAlgorithmParameterException
- 지정된 알고리즘 파라미터가 이 MAC 에 올바르지 않은 경우protected abstract void engineUpdate(byte input)
input
- 처리되는 입력 바이트protected abstract void engineUpdate(byte[] input, int offset, int len)
input
내의 len
바이트를 처리합니다. offset
로부터 시작합니다.
input
- 입력 버퍼offset
- 입력을 개시하는 input
내의 오프셋(offset)len
- 처리하는 바이트수protected void engineUpdate(ByteBuffer input)
input
내의 input.position()
로부터 시작되는 input.remaining()
바이트를 처리합니다. 종료시에, 버퍼의 위치는 리밋트에 동일해집니다만, 리밋트는 변경되지 않습니다.
ByteBuffer 를 바이트 배열보다 효율적으로 처리할 수 있는 경우, 이 메소드를 서브 클래스에서 오버라이드(override) 하는 것을 검토해 주세요.
input
- ByteBufferprotected abstract byte[] engineDoFinal()
protected abstract void engineReset()
public Object clone() throws CloneNotSupportedException
Object
내의 clone
CloneNotSupportedException
- Cloneable
를 지원하고 있지 않는 구현으로 불려 갔을 경우Cloneable
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.