How to disable kerberos replay cache in Java?

2019-09-02 19:35发布

问题:

I found that define the environment variable KRB5RCACHETYPE=none can disable kerberos replay cache in c/c++ applications, Java has it's own implementation of kerberos authentication, does anyone know how to disable replay cache in Java?

回答1:

I would disable replay detection: http://docs.oracle.com/javase/1.5.0/docs/api/org/ietf/jgss/GSSContext.html#requestReplayDet%28boolean%29



标签: java kerberos