1 7 8 package org.ietf.jgss; 9 10 77 public interface GSSCredential extends Cloneable { 78 79 84 public static final int INITIATE_AND_ACCEPT = 0; 85 86 87 92 public static final int INITIATE_ONLY = 1; 93 94 95 100 public static final int ACCEPT_ONLY = 2; 101 102 103 107 public static final int DEFAULT_LIFETIME = 0; 108 109 114 public static final int INDEFINITE_LIFETIME = Integer.MAX_VALUE; 115 116 126 public void dispose() throws GSSException ; 127 128 137 public GSSName getName() throws GSSException ; 138 139 155 public GSSName getName(Oid mech) throws GSSException ; 156 157 175 public int getRemainingLifetime() throws GSSException ; 176 177 197 public int getRemainingInitLifetime(Oid mech) throws GSSException ; 198 199 219 public int getRemainingAcceptLifetime(Oid mech) throws GSSException ; 220 221 236 public int getUsage() throws GSSException ; 237 238 255 public int getUsage(Oid mech) throws GSSException ; 256 257 271 public Oid [] getMechs() throws GSSException ; 272 273 332 public void add(GSSName name, int initLifetime, int acceptLifetime, 333 Oid mech, int usage) throws GSSException ; 334 335 344 public boolean equals(Object another); 345 346 351 public int hashCode(); 352 353 } 354 355 | Popular Tags |