@ Override public String getName ( ) { CommonProfile profile = this . getProfile ( ) ; if ( null == principalNameAttribute ) { return profile . getId ( ) ; } Object attrValue = profile . getAttribute ( principalNameAttribute ) ; return ( null == attrValue ) ? null : String . valueOf ( attrValue ) ; }
Returns a name for the principal based upon one of the attributes of the main CommonProfile . The attribute name used to query the CommonProfile is specified in the constructor .