I want to disable the replay cache during context establishment in Kerberos ( JGSS ) to avoid Request is a replay (34)
exception. JGSS provides the method requestReplayDet() to be called on initiator side but this works only to detect replay of tokens passed after context establishment ( not during context establishment ).
In CGSS we have environment variable KRB5RCACHENAME which can be set to none but in Java GSS it doesn't work.
(Edit)Support Added in Java 8 : https://docs.oracle.com/javase/8/docs/technotes/guides/security/enhancements-8.html -> "-Dsun.security.krb5.rcache=none"