Extracting Values from a Custom Principal
Rod Widdowson
rdw at steadingsoftware.com
Fri Feb 12 04:37:34 EST 2016
(Aside: I think that this needs to move to dev)
> Scott as we discussed earlier today.
I think I'm missing context here but...
> Something like the code below would have been very
> useful getting attributes values out of a custom subject class it would have cut down on
> custom javascript considerably.
It would be good to have this in an RFE otherwise it will get lost.
> 1) Required: PrincipalClass: What principal class to extract out of the subject.
Is there ever any case when you want more than one principal class?
> If there are multiple matches this logic will be called multiple times once per instance.
> Assumes Principal also has an interface which allows get(String), and
> Set<String> getKeys().
I'm not sure the relevance of this, but I suspect it comes out in the code.
> 3) Optional: Attribute list - list of attributes to return or return all if not listed
> 4) Optional: ReturnAttributes change the name of the attributes on return to those specified.
Without understanding more this seems weird. In your example you seem to be making an assumption about what a Principal is which transcends java.security.Principal (is youe example X509 specific?
Rod
More information about the users
mailing list