@Override public GSSName getName() throws GSSException { return credential.getName(); }
@Override public int getRemainingLifetime() throws GSSException { return credential.getRemainingLifetime(); }
@Override public void add(GSSName name, int initLifetime, int acceptLifetime, Oid mech, int usage) throws GSSException { credential.add(name, initLifetime, acceptLifetime, mech, usage); }
gssCreds.dispose();
@Override public Oid[] getMechs() throws GSSException { return credential.getMechs(); }
private boolean equals(final GSSKerberosCredential obj) { return gssCredential.equals(obj.gssCredential) && Objects.equals(kerberosTicket, obj.kerberosTicket); } }
@Override public int getRemainingInitLifetime(Oid mech) throws GSSException { return credential.getRemainingInitLifetime(mech); }
@Override public int getRemainingAcceptLifetime(Oid mech) throws GSSException { return credential.getRemainingAcceptLifetime(mech); }
@Override public void logout() throws Exception { if (loginContext != null) { loginContext.logout(); } if (gssCredential != null) { gssCredential.dispose(); } }
@Override public Oid[] getMechs() throws GSSException { return credential.getMechs(); }
private boolean equals(final GSSKerberosCredential obj) { return gssCredential.equals(obj.gssCredential) && Objects.equals(kerberosTicket, obj.kerberosTicket); } }
@Override public int getRemainingInitLifetime(Oid mech) throws GSSException { return credential.getRemainingInitLifetime(mech); }
@Override public int getRemainingAcceptLifetime(Oid mech) throws GSSException { return credential.getRemainingAcceptLifetime(mech); }
public boolean needsRefresh() throws GSSException { return clientCredential.getRemainingLifetime() < MIN_CREDENTIAL_LIFETIME.getValue(SECONDS); } }
@Override public GSSName getName(Oid mech) throws GSSException { return credential.getName(mech); }
@Override public void logout() throws Exception { if (loginContext != null) { loginContext.logout(); } if (gssCredential != null) { gssCredential.dispose(); } }