I am wondering if there is a way to add Secured Services (non-federated but shared via AGOL) to the CredentialCache? As far as I can tell this does not work. It would be nice to be able to do this so that secured service credentials could be stored in the same way that credentials associated with portal/AGOL are.
The documentation seems to indicate that after credentials are used they are automatically added to the CredentialCache. I see this happening with credentials associated with AGOL but am not seeing that happen with credentials use for secured services. Can Secured (non-federated) Services be used with CredentialCache? I am using the "extends DefaultAuthenticationChallengeHandler" to authenticate secured services.