| 1 7 8 package org.ietf.jgss; 9 10 import sun.security.jgss.spi.*; 11 import java.io.InputStream ; 12 import java.io.OutputStream ; 13 14 157 public interface GSSContext { 158 159 163 public static final int DEFAULT_LIFETIME = 0; 164 165 170 public static final int INDEFINITE_LIFETIME = Integer.MAX_VALUE; 171 172 219 public byte[] initSecContext(byte inputBuf[], int offset, int len) 220 throws GSSException ; 221 222 304 public int initSecContext(InputStream inStream, 305 OutputStream outStream) throws GSSException ; 306 307 371 public byte[] acceptSecContext(byte inToken[], int offset, int len) 372 throws GSSException ; 373 374 447 459 public void acceptSecContext(InputStream inStream, 460 OutputStream outStream) throws GSSException ; 461 462 469 public boolean isEstablished(); 470 471 480 public void dispose() throws GSSException ; 481 482 513 public int getWrapSizeLimit(int qop, boolean confReq, 514 int maxTokenSize) throws GSSException ; 515 516 554 public byte[] wrap(byte inBuf[], int offset, int len, 555 MessageProp msgProp) throws GSSException ; 556 557 601 public void wrap(InputStream inStream, OutputStream outStream, 602 MessageProp msgProp) throws GSSException ; 603 604 637 public byte [] unwrap(byte[] inBuf, int offset, int len, 638 MessageProp msgProp) throws GSSException ; 639 640 684 public void unwrap(InputStream inStream, OutputStream outStream, 685 MessageProp msgProp) throws GSSException ; 686 687 716 public byte[] getMIC(byte []inMsg, int offset, int len, 717 MessageProp msgProp) throws GSSException ; 718 719 749 public void getMIC(InputStream inStream, OutputStream outStream, 750 MessageProp msgProp) throws GSSException ; 751 752 784 public void verifyMIC(byte[] inToken, int tokOffset, int tokLen, 785 byte[] inMsg, int msgOffset, int msgLen, 786 MessageProp msgProp) throws GSSException ; 787 788 832 public void verifyMIC(InputStream tokStream, InputStream msgStream, 833 MessageProp msgProp) throws GSSException ; 834 835 888 public byte [] export() throws GSSException ; 889 890 910 public void requestMutualAuth(boolean state) throws GSSException ; 911 912 940 public void requestReplayDet(boolean state) throws GSSException ; 941 942 972 public void requestSequenceDet(boolean state) throws GSSException ; 973 974 |