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 998 public void requestCredDeleg(boolean state) throws GSSException ; 999 1000 1018 public void requestAnonymity(boolean state) throws GSSException ; 1019 1020 1048 public void requestConf(boolean state) throws GSSException ; 1049 1050 1072 public void requestInteg(boolean state) throws GSSException ; 1073 1074 1093 public void requestLifetime(int lifetime) throws GSSException ; 1094 1095 1110 public void setChannelBinding(ChannelBinding cb) throws GSSException ; 1111 1112 1125 public boolean getCredDelegState(); 1126 1127 1139 public boolean getMutualAuthState(); 1140 1141 1153 public boolean getReplayDetState(); 1154 1155 1167 public boolean getSequenceDetState(); 1168 1169 1188 public boolean getAnonymityState(); 1189 1190 1201 public boolean isTransferable() throws GSSException ; 1202 1203 1213 public boolean isProtReady(); 1214 1215 1228 public boolean getConfState(); 1229 1230 1242 public boolean getIntegState(); 1243 1244 1254 public int getLifetime(); 1255 1256 1269 public GSSName getSrcName() throws GSSException ; 1270 1271 1283 public GSSName getTargName() throws GSSException ; 1284 1285 1297 public Oid getMech() throws GSSException ; 1298 1299 1315 public GSSCredential getDelegCred() throws GSSException ; 1316 1317 1329 public boolean isInitiator() throws GSSException ; 1330} 1331 | Popular Tags |