public Authentication getAuthentication ( ) { String username = getValueModel ( LoginDetails . PROPERTY_USERNAME , String . class ) . getValue ( ) ; String password = getValueModel ( LoginDetails . PROPERTY_PASSWORD , String . class ) . getValue ( ) ; return new UsernamePasswordAuthenticationToken ( username , password ) ; }
Get an Authentication token that contains the current username and password .