cklein05 commented on a change in pull request #463: URL: https://github.com/apache/tomcat/pull/463#discussion_r783207980
########## File path: java/org/apache/catalina/TomcatPrincipal.java ########## @@ -47,4 +48,37 @@ * exception to LoginContext */ void logout() throws Exception; + + /** + * Returns the value of the named attribute as an <code>Object</code>, or + * <code>null</code> if no attribute of the given name exists, or if + * <code>null</code> has been specified as the attribute's name. + * <p> + * Only the servlet container may set attributes to make available custom + * information about a Principal or the user it represents. For example, some of + * the Realm implementations can be configured to additionally query user + * attributes from the <i>user database</i>, which then are provided through the + * Principal's attributes map. + * <p> + * Attribute names and naming conventions are maintained by the Tomcat + * components that contribute to this map, like some of the Realm + * implementations. Review comment: Don't know whether it's really the exact word. However, every attribute provider (aka Realm) can use it's own naming schema and conventions. Some may use prefixes (user.displayName) others may not, who knows. We make no rules or assumptions here but only refer to the each attribute provider's documentation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org