src/net/java/otr4j/session/SessionKeys.java
author Da Risk <da_risk@beem-project.com>
Wed, 31 Oct 2012 23:11:14 +0100
changeset 1005 4c7edc276676
parent 906 0ff0059f2ec3
permissions -rw-r--r--
Switch to Florian Shmauss maintained version of asmack. See doc/asmack-beem/README.txt for more information on how to build the asmack jar. The upstream asmack has a better implementation of XEP-0115 EntityCapabilities. So this commit remove the specific Beem implementation of this XEP and switch to the asmack one.

package net.java.otr4j.session;

import java.math.BigInteger;
import java.security.KeyPair;

import javax.crypto.interfaces.DHPublicKey;

import net.java.otr4j.OtrException;

interface SessionKeys {

	public static final int Previous = 0;
	public static final int Current = 1;
	public static final byte HIGH_SEND_BYTE = (byte) 0x01;
	public static final byte HIGH_RECEIVE_BYTE = (byte) 0x02;
	public static final byte LOW_SEND_BYTE = (byte) 0x02;
	public static final byte LOW_RECEIVE_BYTE = (byte) 0x01;

	public abstract void setLocalPair(KeyPair keyPair, int localPairKeyID);

	public abstract void setRemoteDHPublicKey(DHPublicKey pubKey,
			int remoteKeyID);

	public abstract void incrementSendingCtr();

	public abstract byte[] getSendingCtr();

	public abstract byte[] getReceivingCtr();

	public abstract void setReceivingCtr(byte[] ctr);

	public abstract byte[] getSendingAESKey() throws OtrException;

	public abstract byte[] getReceivingAESKey() throws OtrException;

	public abstract byte[] getSendingMACKey() throws OtrException;

	public abstract byte[] getReceivingMACKey() throws OtrException;

	public abstract void setS(BigInteger s);

	public abstract void setIsUsedReceivingMACKey(Boolean isUsedReceivingMACKey);

	public abstract Boolean getIsUsedReceivingMACKey();

	public abstract int getLocalKeyID();

	public abstract int getRemoteKeyID();

	public abstract DHPublicKey getRemoteKey();

	public abstract KeyPair getLocalPair();

}