Thanks for the reply
> I am presuming that the host is necessary as some identifying
> information about the user?
Yes
> You need to store the host information in the PrincipalCollection. So:
>
> public class HostInfo {
> String hostname;
> }
>
> Create this object in doGetAuthenticationInfo, and add it to the
> PrincipalCollection in the returned AuthenticationInfo.
>
> Then, in doGetAuthorizationInfo, you simply need to call:
>
> principals.oneByType(HostInfo.class).hostname
>
> Of course, make the HostInfo class prettier (constructors, getters, what
> have you). It might take a little bit more effort to create the
> AuthenticationInfo in the first place (I believe you will have to create
> your own PrincipalCollection object) but without seeing your current
> code I can't tell you much more than that.
>
> Let me know if that makes sense.
Thanks. I will give it a try