JDK-7201053 : Krb5LoginModule shows NPE when both useTicketCache and storeKey are set to true
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-09-26
  • Updated: 2014-02-05
  • Resolved: 2012-10-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7-poolResolved 8 b61Fixed
useTicketCache normally used in the intiator side, and storeKey on the acceptor side. When both are set to true, and a valid TGT is found inside the cache, no password or keytab will be required, and therefore no key to store.

This combination is useless and should have been set to illegal. However, some customers simply set a lot of arguments to true and this will actually work if password or key is used. We don't want to break their programs.

For this case, when there is no key but storeKey is true, a proper LoginException should be thrown. This is also consistent with the JDK 6 behavior.