|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
java.lang.Objectjavax.crypto.MacSpi
public abstract class MacSpi
����Ϊ Mac
�ඨ�������ṩ�߽ӿ� (SPI)�� �����е����г�����������ÿ��ϣ���ṩʵ���ض� MAC �㷨�ļ��ܷ����ṩ��ʵ�֡�
��ʵ�ֿ�������ʵ�� Cloneable �ӿڡ�
���췽��ժҪ | |
---|---|
MacSpi()
|
����ժҪ | |
---|---|
Object |
clone()
�����ʵ�ֿ��Ը��ƣ���һ�������� |
protected abstract byte[] |
engineDoFinal()
��� MAC ���㲢���������� MAC �Ա��һ��ʹ�ã�ά�� MAC ��ʼ�����õ�������Կ�� |
protected abstract int |
engineGetMacLength()
�������ֽ�Ϊ��λ�� MAC �ij��ȡ� |
protected abstract void |
engineInit(Key key,
AlgorithmParameterSpec params)
�ø����ģ����ܣ���Կ���㷨������ʼ�� MAC�� |
protected abstract void |
engineReset()
Ϊ�˽�һ��ʹ�ö��������� MAC��ά�� MAC ��ʼ�����õ�������Կ�� |
protected abstract void |
engineUpdate(byte input)
�����������ֽڡ� |
protected abstract void |
engineUpdate(byte[] input,
int offset,
int len)
�� offset ��ʼ���������������� input �е�ǰlen ���ֽڡ� |
protected void |
engineUpdate(ByteBuffer input)
�� input.position() ��ʼ�������� ByteBuffer input �е� 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)
offset
��ʼ���������������� input
�е�ǰlen
���ֽڡ�
input
- ���뻺������offset
- input
�����뿪ʼ����ƫ������len
- Ҫ�������ֽ�����protected void engineUpdate(ByteBuffer input)
input.position()
��ʼ�������� ByteBuffer input
�е� input.remaining()
�ֽڡ� ����ʱ����������λ�ý����������ƣ������Ʋ�δ�ı䡣
����ܹ���byte�������Ч�ش��� ByteBuffer������Ӧ������д�˷�����
input
- ByteBufferprotected abstract byte[] engineDoFinal()
protected abstract void engineReset()
public Object clone() throws CloneNotSupportedException
Object
�е� clone
CloneNotSupportedException
- �������һ����֧�� Cloneable
��ʵ�֡�Cloneable
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������